{"id":688,"date":"2009-07-09T01:09:07","date_gmt":"2009-07-08T16:09:07","guid":{"rendered":"http:\/\/teruaki-tsubokura.com\/blog\/688"},"modified":"2017-03-24T06:24:13","modified_gmt":"2017-03-23T21:24:13","slug":"wii%e3%83%aa%e3%83%a2%e3%82%b3%e3%83%b3%e3%81%a7%e5%87%ba%e6%9d%a5%e3%82%8b%e4%ba%8b","status":"publish","type":"post","link":"https:\/\/teruaki-tsubokura.com\/Lab\/wii%e3%83%aa%e3%83%a2%e3%82%b3%e3%83%b3%e3%81%a7%e5%87%ba%e6%9d%a5%e3%82%8b%e4%ba%8b\/","title":{"rendered":"Wii\u30ea\u30e2\u30b3\u30f3\u3067\u51fa\u6765\u308b\u4e8b"},"content":{"rendered":"<p>Wii\u30ea\u30e2\u30b3\u30f3\u306fBluetooth\u901a\u4fe1\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Bluetooth\u304c\u5165\u3063\u3066\u3044\u308b\u30d1\u30bd\u30b3\u30f3\u306a\u3089\u7c21\u5358\u306bWii\u30ea\u30e2\u30b3\u30f3\u3092PC\u3068\u30ef\u30a4\u30e4\u30ec\u30b9\u63a5\u7d9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3055\u3089\u306bcodeplex\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308bWiimoteLib\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3068C#\u306a\u3093\u304b\u3067\u7c21\u5358\u306bWii\u30ea\u30e2\u30b3\u30f3\u306e\u5236\u5fa1\u3092\u884c\u3046\u4e8b\u304c\u3067\u304d\u308b\u8a33\u3067\u3059\u3002<br \/>\n\u25a0WiimoteLib\u306f\u3053\u3061\u3089<br \/>\n<a href=\"http:\/\/www.codeplex.com\/WiimoteLib\" target=\"_blank\" title=\"http:\/\/www.codeplex.com\/WiimoteLib\">http:\/\/www.codeplex.com\/WiimoteLib<\/a><br \/>\nWii\u30ea\u30e2\u30b3\u30f3\u306b\u3064\u3044\u3066\u3044\u308b\u6a5f\u80fd\u3068\u3057\u3066\u524d\u306e\u8a18\u4e8b\u3067\u3082\u66f8\u304d\u307e\u3057\u305f\u304c\u3001<br \/>\n<strong>\u30fb\u8d64\u5916\u7dda\u30ab\u30e1\u30e9<br \/>\n\u30fbXYZ\u8ef8\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5<br \/>\n\u30fbXY\u8ef8\u50be\u304d\u30bb\u30f3\u30b5\uff08\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5\u304b\u3089\u6c42\u3081\u308b\uff09<br \/>\n\u30fb\uff11\uff11\u30dc\u30bf\u30f3<br \/>\n\u30fb\uff14\u3064\u306eLED<br \/>\n\u30fb\u30d0\u30a4\u30d6\u30ec\u30fc\u30b7\u30e7\u30f3\u6a5f\u80fd<br \/>\n\u30fb\u30b5\u30a6\u30f3\u30c9\u6a5f\u80fd<\/strong><br \/>\n\u3068\u3001\u3053\u308c\u3060\u3051\u6ca2\u5c71\u306e\u30bb\u30f3\u30b5\u304c\u30ef\u30a4\u30a2\u30ec\u30b9\u3067\u4f7f\u3048\u3066\u3057\u307e\u3046\u306e\u3067\u8272\u3005\u306a\u53ef\u80fd\u6027\u304c\u5e83\u304c\u308a\u307e\u3059\u3088\u306d\u3002<br \/>\n\u3053\u3053\u3067\u5c11\u3057Wii\u30ea\u30e2\u30b3\u30f3\u304b\u3089\u53d7\u3051\u53d6\u308b\u5024\u306e\u8aac\u660e\u3092\u3057\u3088\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n<strong>\u30fb\u8d64\u5916\u7dda\u30ab\u30e1\u30e9<\/strong><br \/>\n\u8d64\u5916\u7dda\u30ab\u30e1\u30e9\u3067\u306f\u8d64\u5916\u7dda\u5149\u6e90\u30924\u3064\u307e\u3067\u691c\u51fa\u3059\u308b\u4e8b\u304c\u3067\u304d\u3001\u305d\u308c\u305e\u308cIRSensors[0]\uff5e[3]\u306e\u4e2d\u306bX\u30fbY\u306e\u5ea7\u6a19\u304c\u683c\u7d0d\u3055\u308c\u307e\u3059\u3002<br \/>\nX\u30fbY\u306f\u305d\u308c\u305e\u308c0\uff5e1\u306e\u9593\u3067\u8868\u3055\u308c\u3066\u3001\u5c0f\u6570\u70b9\u4ee5\u4e0b\u3082\u304b\u306a\u308a\u7d30\u304b\u3044\u3068\u3053\u308d\u307e\u3067\u6b63\u78ba\u306b\u691c\u51fa\u3067\u304d\u307e\u3059\u3002<br \/>\n\u305f\u3068\u3048\u3070\uff65\uff65\uff65<br \/>\nif(IRState.IRSensors[0].found)\u3067\u8d64\u5916\u7dda\u304c1\u3064\u898b\u3064\u304b\u3063\u305f\u3068\u304d\u306b\u3001<br \/>\n(IRState.IRSensors[0].X , IRState.IRSensors[0].Y) \u306e\u4f4d\u7f6e\u306b\u30de\u30fc\u30af\u3092\u8868\u793a\u3057\u305f\u308a\u3057\u3066\u4f7f\u3044\u307e\u3059\u3002<br \/>\n<strong>\u30fb\u52a0\u901f\u5ea6\u30bb\u30f3\u30b5<\/strong><br \/>\nX\u30fbY\u30fbZ\u8ef8\u305d\u308c\u305e\u308c-1\uff5e+1\u306e\u9593\u3067\u52a0\u901f\u5ea6\u304c\u691c\u51fa\u3055\u308c\u3066\u3001\u3053\u3061\u3089\u3082\u304b\u306a\u308a\u7d30\u304b\u3044\u6570\u5024\u304c\u3067\u307e\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306bWii\u30ea\u30e2\u30b3\u30f3\u3092\u5e73\u884c\u306b\u5730\u9762\u306b\u7f6e\u3044\u305f\u72b6\u614b\u3067\u306f\u91cd\u529b\u3067Y\u8ef8\u304c\u5e38\u306b+1\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u3061\u3089\u306fAccselState.Value.X\u3067\u305d\u306e\u8ef8\u306e\u5024\u3092\u547c\u3073\u51fa\u3057\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3059\u3002<br \/>\n\u3053\u306e\u4e8c\u3064\u3060\u3051\u3067\u3082\u304b\u306a\u308a\u9762\u767d\u305d\u3046\u306a\u3082\u306e\u304c\u3067\u304d\u305d\u3046\u3067\u3059\u3002<br \/>\n\u4eca\u7814\u7a76\u3067\u3001\u30d5\u30a3\u30b8\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0\u3068\u3044\u3046\u73fe\u5b9f\u3068\u30c7\u30b8\u30bf\u30eb\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u8eab\u4f53\u7684\u306b\u64cd\u4f5c\u3067\u304d\u308b\u3082\u306e\u304c\u4f5c\u308a\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305d\u3053\u3067\u8003\u3048\u305f\u306e\u304c\u3001<strong>Wii\u30ea\u30e2\u30b3\u30f3\u306e\u8d64\u5916\u7dda\u30ab\u30e1\u30e9\u3067\u30dc\u30fc\u30eb\u306e\u4f4d\u7f6e\u3092\u30c8\u30e9\u30c3\u30ad\u30f3\u30b0\u3057\u3066\u904a\u3079\u308b\u30b2\u30fc\u30e0\u3082\u3057\u304f\u306f\u30a4\u30f3\u30bf\u30e9\u30af\u30c6\u30a3\u30d6\u30a2\u30fc\u30c8<\/strong>\u3002<br \/>\n\u4ed5\u7d44\u307f\u3068\u3057\u3066\u306f\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n<a href=\"http:\/\/teruaki-tsubokura.com\/blog\/wp-content\/uploads\/import\/20090709010051810.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/teruaki-tsubokura.com\/blog\/wp-content\/uploads\/import\/20090709010051810.jpg\" alt=\"\u56f3\" border=\"0\" width=\"384\" height=\"288\" \/><\/a><br \/>\n\u30fbWii\u30ea\u30e2\u30b3\u30f3\u3092\u90e8\u5c4b\u306e\u4e0a\u90e8\u306b\u56fa\u5b9a\u3057\u3001\u305d\u306e\u65b9\u5411\u304b\u3089\u8d64\u5916\u7dda\u3092\u653e\u51fa<br \/>\n\u30fb\u30dc\u30fc\u30eb\uff08\u8d64\u5916\u7dda\u3092\u53cd\u5c04\u3059\u308b\u3082\u306e\uff09\u304b\u3089\u53cd\u5c04\u3057\u305f\u8d64\u5916\u7dda\u306e\u5ea7\u6a19\u3092Wii\u30ea\u30e2\u30b3\u30f3\u3067\u691c\u51fa<br \/>\n\u30fb\u30d7\u30ed\u30b8\u30a7\u30af\u30bf\u3067\u30dc\u30fc\u30eb\u306b\u91cd\u306d\u5408\u308f\u305b\u3066\u30a8\u30d5\u30a7\u30af\u30c8\u3092\u8868\u793a\u3057\u305f\u308a\u6575\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u8868\u793a\u3059\u308b<br \/>\n\u30fb\u4e00\u4eba\u306f\u30dc\u30fc\u30eb\u3092\u8ee2\u304c\u3057\u3066\u904a\u3073\u3001\u5225\u306e\u4eba\u304c\u3082\u30461\u3064\u306eWii\u30ea\u30e2\u30b3\u30f3\u3067\u6575\u30ad\u30e3\u30e9\u30af\u30bf\u30fc\u3092\u64cd\u4f5c\u3067\u304d\u3066\u5bfe\u6226\u3067\u304d\u308b\u3068\u697d\u3057\u3044\u304b\u3082<br \/>\n<a href=\"http:\/\/teruaki-tsubokura.com\/blog\/wp-content\/uploads\/import\/200907090101029eb.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/teruaki-tsubokura.com\/blog\/wp-content\/uploads\/import\/200907090101029eb.jpg\" alt=\"\u56f3\uff12\" border=\"0\" width=\"384\" height=\"288\" \/><\/a><br \/>\n\u7c21\u5358\u3060\u3051\u3069\u3053\u3093\u306a\u30a4\u30e1\u30fc\u30b8\u3002<br \/>\n\u5b9f\u969b\u306b\u30d7\u30ed\u30c8\u30bf\u30a4\u30d7\u306f\u4f5c\u3063\u3066\u308b\u3051\u3069\u3001\u52d5\u3044\u3066\u308b\u6240\u3092\u9332\u753b\u3057\u305f\u3089\u307e\u305f\u3053\u3053\u306b\u8f09\u305b\u305f\u3044\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wii\u30ea\u30e2\u30b3\u30f3\u306fBluetooth\u901a\u4fe1\u3092\u4f7f\u3063\u3066\u3044\u308b\u306e\u3067\u3001Bluetooth\u304c\u5165\u3063\u3066\u3044\u308b\u30d1\u30bd\u30b3\u30f3\u306a\u3089\u7c21\u5358\u306bWii\u30ea\u30e2\u30b3\u30f3\u3092PC\u3068\u30ef\u30a4\u30e4\u30ec\u30b9\u63a5\u7d9a\u3059\u308b\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002 \u3055\u3089\u306bcodeplex\u3067\u516c\u958b\u3055\u308c\u3066\u3044\u308bWiimoteLib\u3068 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[469],"tags":[],"class_list":["post-688","post","type-post","status-publish","format-standard","hentry","category-diary"],"_links":{"self":[{"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/posts\/688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/comments?post=688"}],"version-history":[{"count":1,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/posts\/688\/revisions"}],"predecessor-version":[{"id":2496,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/posts\/688\/revisions\/2496"}],"wp:attachment":[{"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/media?parent=688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/categories?post=688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teruaki-tsubokura.com\/Lab\/wp-json\/wp\/v2\/tags?post=688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}