''Introduction''
ƳÆþ

'''With the Internet Channel on Wii, a Web page is able to monitor the cursor and Wii Remote buttons using traditional JavaScript event detection (described in the article "Making Wii-friendly pages").'''
Wii¤Î¥¤¥ó¥¿¡¼¥Í¥Ã¥È¥Á¥ã¥ó¥Í¥ë¤Ç¡¢Web¥Ú¡¼¥¸¤ÏÅÁÅýŪJavaScript¥¤¥Ù¥ó¥È¥Ü¥¿¥ó¤ò»È¤Ã¤ÆWii¥ê¥â¥³¥ó¤Î¥Ü¥¿¥ó¤È¥«¡¼¥½¥ë¤Î¥¤¥Ù¥ó¥È¤ò¸¡½Ð¤Ç¤­¤Þ¤¹¡£

In addition, it is able to to access motion sensitivity information about the Wii Remote that is being used to browse the Web page. This is exposed through the Wii Remote API.
²Ã¤¨¤Æ¡¢Wii¥ê¥â¥³¥ó¤Î¥â¡¼¥·¥ç¥ó¥»¥ó¥·¥Æ¥£¥Ó¥Æ¥£¤Î¾ðÊó¤Ë¤â¥¢¥¯¥»¥¹¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
¤³¤ì¤¬Wii ¥ê¥â¥³¥óAPI¤Ç¤¹¡£

The Wii Remote API also allows the Web page to detect all Wii Remotes that are connected to the Wii; 
Wii¥ê¥â¥³¥óAPI¤Ï¡¢Wii¤ËÀܳ¤·¤Æ¤¤¤ë¤¹¤Ù¤Æ¤ÎWii¥ê¥â¥³¥ó¤ò¸¡½Ð¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
up to four at a time.
°ìÅÙ¤Ë4¤Ä¤Þ¤Ç¡£(4¿Í¤Þ¤Ç)

This makes it possible to make Web pages interact with up to four users at the same time,
¤³¤ì¤Ï¡¢Æ±»þ¤Ë4¿Í¤Î¥æ¡¼¥¶¡¼¤¬Áê¸ßºîÍѤ¹¤ëWeb¥Ú¡¼¥¸¤òºîÀ®¤¹¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

a concept not normally possible with traditional JavaScript event detection.
¥³¥ó¥»¥×¥È¤ÏÅÁÅýŪJavaScript¥¤¥Ù¥ó¥È¸¡½Ð¤«¤é°ìÈÌŪ¤ËÍøÍѤǤ­¤Þ¤»¤ó¡£(¥¤¥Ù¥ó¥È¶îÆ°¤Ç¤Ï¤Ê¤¤¤Ã¤Æ¤³¤È??)

The API is available to JavaScript running on the Web page.
API¤Ï¡¢Web¥Ú¡¼¥¸¾å¤ÇÁö¤ëJavaScript¤«¤éÍøÍѤǤ­¤Þ¤¹¡£

<b>Motion sensitivity</b>
¥â¡¼¥·¥ç¥ó¥»¥ó¥·¥Æ¥£¥Ó¥Æ¥£

The API gives information about the current status of the Wii Remotes.
API¤Ï¡¢Wii¥ê¥â¥³¥ó¤Î¸½ºß¤Î¾õÂ֤ˤĤ¤¤Æ¤Î¾ðÊó¤òÍ¿¤¨¤Þ¤¹¡£

This includes their roll, cursor position, distance from the screen, and what buttons are pressed.
¤³¤ì¤Ï¡¢¤½¤ì¤é¤Î²óž¡¢¥«¡¼¥½¥ë¤Î°ÌÃÖ¡¢¥¹¥¯¥ê¡¼¥ó¤«¤é¤Îµ÷Î¥¡¢¥Ü¥¿¥ó¤¬²¡¤µ¤ì¤Æ¤¤¤ë¤«¤É¤¦¤«
¤ò´Þ¤ß¤Þ¤¹¡£

It does not give access to acceleration information.
²Ã®¤Î¾ðÊó¤Ø¤Î¥¢¥¯¥»¥¹¤ÏÍ¿¤¨¤Þ¤»¤ó¡£

Even when it appears perfectly still, resting on a flat surface, the Wii Remote is constantly sensing motion. 
´°Á´¤Ëɽ¼¨¤µ¤ì¤ë¤Þ¤Ç¡¢Ê¿¤é¤ÊɽÌ̾å¤Ç¥ê¥»¥Ã¥È¤·(???)¡¢Wii¥ê¥â¥³¥ó¤ÏÀ䤨¤ºÆ°¤­¤ò´¶ÃΤ·¤Þ¤¹¡£


In fact, it never stops sensing motion.
¼ÂºÝ¡¢Æ°¤­¤Î´¶ÃΤò·è¤·¤Æ¤ä¤á¤Þ¤»¤ó¡£

As a result, it is not possible to use events to detect when it moves,
·ë²Ì¤È¤·¤Æ¡¢¤½¤ì¤¬Æ°¤¯»þ¤ò¸¡ÃΤ¹¤ë¤¿¤á¤Ë¥¤¥Ù¥ó¥È¤òÍøÍѤ¹¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£

because the events would never stop firing,
¤Ê¤¼¤Ê¤é¥¤¥Ù¥ó¥È¤Ï·è¤·¤ÆÊü¼Í¤ò¤ä¤á¤Ê¤¤¤«¤é¤Ç¤¹¡£

and it would not be possible for a script to keep up.
¤½¤·¤Æ¡¢¥¹¥¯¥ê¥×¥È¤¬Æ°¤­Â³¤±¤ë¤³¤È¤ÏÉÔ²Äǽ¤Ç¤·¤ç¤¦¡£

As a result, the API offers a method to update the data on demand, 
·ë²Ì¤È¤·¤Æ¡¢API¤Ï¡¢É¬Íפ˱þ¤¸¤Æ¡¢¥Ç¡¼¥¿¤ò¹¹¿·¤¹¤ë¤¿¤á¤Î¥á¥½¥Ã¥É¤òÄ󶡤·¤Þ¤¹¡£

to obtain the instantaneous values.
¨»þ¤ÎÃͤò¼èÆÀ¤¹¤ë¤¿¤á¤Î¡£

Typical use would involve polling for this data at required intervals.
Æäˡ¢Í׵ᤵ¤ì¤ë´Ö³Ö¤Ç¡¢¤³¤Î¥Ç¡¼¥¿¤Î¥Ý¡¼¥ê¥ó¥°¤¬ÍøÍѤµ¤ì¤ë¤Ç¤·¤ç¤¦¡£

<b>Polling the status of a remote</b>
¥ê¥â¥³¥ó¤Î¾õÂ֤Υݡ¼¥ê¥ó¥°

The Wii Remote data is accessed through the opera.wiiremote object.
Wii ¥ê¥â¥³¥ó¤Î¥Ç¡¼¥¿¤Ï¡Öopera.wiiremote¡×¥ª¥Ö¥¸¥§¥¯¥È¤òÄ̤·¤Æ¥¢¥¯¥»¥¹¤µ¤ì¤Þ¤¹¡£

This object offers a single method opera.wiiremote.update(n) which is used to obtain the status of an individual Wii Remote.
¤³¤Î¥ª¥Ö¥¸¥§¥¯¥È¤Ï¡¢Ã±°ì¤Î¥á¥½¥Ã¥É¡Öopera.wiiremote.update(n)¡×¤òÄ󶡤·¤Þ¤¹¡£
¤³¤ì¤Ï¡¢¸Ä¡¹¤ÎWii¥ê¥â¥³¥ó¤Î¾õÂÖ¤ò¼èÆÀ¤¹¤ë¤Î¤ËÍøÍѤµ¤ì¤Þ¤¹¡£

The method expects a single parameter; 
¥á¥½¥Ã¥É¤Ï°ì¤Ä¤Î¥Ñ¥é¥á¡¼¥¿¤ò¼õ¤±¼è¤ê¤Þ¤¹¡£

the Wii Remote number. 
¤½¤ì¤Ï¡¢Wii¥ê¥â¥³¥óÈֹ档

The number is zero-based, so it starts at 0 for the first remote, and ends at 3 for the fourth remote.
¤½¤Î¿ô»ú¤ÏºÇ½é¤Î¥ê¥â¥³¥ó¤¬¡Ö0¡×¤Ç»Ï¤Þ¤ê4¤ÄÌܤΥê¥â¥³¥ó¤Ï¡Ö3¡×¤Ç½ª¤ï¤ê¤Þ¤¹¡£

The method returns a KpadStatus object,
¤½¤Î¥á¥½¥Ã¥É¤Ï¡ÖKpadStatus¡×¥ª¥Ö¥¸¥§¥¯¥È¤òÊÖ¤·¤Þ¤¹¡£

which has several properties that give information about the remote.
¤³¤ì¤Ï¡¢¤¤¤¯¤Ä¤«¤Î¥×¥í¥Ñ¥Æ¥£¤ò¤â¤Ã¤Æ¤¤¤Æ¡¢¤½¤ì¤Ï¡¢¥ê¥â¥³¥ó¤Ë¤Ä¤¤¤Æ¤Î¾õÂÖ¤òÍ¿¤¨¤Þ¤¹¡£

This update method can be called as often as is needed to obtain a fluid response,
¤³¤Î¥¢¥Ã¥×¥Ç¡¼¥È¥á¥½¥Ã¥É¤ÏήưŪ(?)¥ì¥¹¥Ý¥ó¥¹¤òÆÀ¤ëɬÍפ¬¤¢¤ë¤¿¤Ó¤Ë¸Æ¤Ð¤ì¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

but note that the Wii is not as powerful as most desktop computers,
¤·¤«¤·¡¢Wii¤Ï¡¢¥Ç¥¹¥¯¥È¥Ã¥×¥³¥ó¥Ô¥å¡¼¥¿¤Î¤è¤¦¤Ë¥Ñ¥ï¥Õ¥ë¤Ç¤Ï¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

so it is important to make sure that it is polled only as often as the script that uses that data can process it. 
¤Ê¤Î¤Ç¡¢¥¹¥¯¥ê¥×¥È¤¬¥Ç¡¼¥¿¤ò½èÍý¤¹¤ë¤³¤È¤¬¤Ç¤­¤ëÄøÅÙ¤ÎÉÑÅ٤ǡ¢¥Ý¡¼¥ê¥ó¥°¤ò¤¹¤ë¤³¤È¤¬½ÅÍפǤ¹¡£

For example, if a script uses the Wii Remote status to update the display of a canvas element,
¤¿¤È¤¨¤Ð¡¢¤â¤·¥¹¥¯¥ê¥×¥È¤¬¥­¥ã¥ó¥Ð¥¹Í×ÁǤÎɽ¼¨¤ò¹¹¿·¤¹¤ë¤¿¤á¤ËWii¥ê¥â¥³¥ó¤Î¾õÂÖ¤òÍøÍѤ¹¤ë¤Ê¤é¡¢

and that update will take perhaps 50 ms to update in Opera on a desktop computer,
¥Ç¥¹¥¯¥È¥Ã¥×¥³¥ó¥Ô¥å¡¼¥¿¾å¤Î¥ª¥Ú¥é¤Ç¤Ï¡¢50¥ß¥êÉôֳ֤ǹ¹¿·¤ò¼èÆÀ¤¹¤ë¤¬¡¢

it may take over 100 ms on a Wii. 
Wii¤Ê¤é10¥ß¥êÉÃ0°Ê¾å¤«¤â¤·¤ì¤Þ¤»¤ó¡£

Attempting to use a polling interval of less than 100 ms will cause the response to appear very sluggish.
100¥ß¥êÉäè¤êû¤¤´Ö³Ö¤Ç¥ª¡¼¥ê¥ó¥°¤òÍøÍѤ¹¤ë¾ì¹ç¤Ï¡¢¥ì¥¹¥Ý¥ó¥¹¤¬¤«¤Ê¤êÃÙ¤¯¤Ê¤ë¸¶°ø¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

Note that the opera.wiiremote object only exists in Opera on Wii, 
¡Öopera.wiiremote¡×¥ª¥Ö¥¸¥§¥¯¥È¤ÏWii¤ÎOpera¤Ç¤Î¤ß¸ºß¤¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡£

so it is important to check for its existence,as well as the existence of the opera object, before attempting to use it.
¤Ç¤¹¤Î¤Ç¡¢¤½¤ì¤òÍøÍѤ¹¤ëÁ°¤Ë¡¢opera¥ª¥Ö¥¸¥§¥¯¥È¤Î¸ºß¤Î¥Á¥§¥Ã¥¯¤ÈƱÍͤˡ¢¤½¤Î¸ºß¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤³¤È¤Ï½ÅÍפǤ¹¡£

<b>The KpadStatus object</b>
KpadStatus¥ª¥Ö¥¸¥§¥¯¥È

The KpadStatus object gives data for Wii Remotes and Nunchuk buttons only.
KpadStatus¥ª¥Ö¥¸¥§¥¯¥È¤ÏWii¥ê¥â¥³¥ó¤È¥Ì¥ó¥Á¥ã¥¯¤Î¥Ü¥¿¥ó¤À¤±¤Î¥Ç¡¼¥¿¤òÍ¿¤¨¤Þ¤¹¡£

It does not give information for Classic Controllers.
¥¯¥é¥·¥Ã¥¯¥³¥ó¥È¥í¡¼¥é¤Î¾ðÊó¤ÏÍ¿¤¨¤é¤ì¤Þ¤»¤ó¡£

It is important to note that Wii Remotes can be switched off,
wii¥ê¥â¥³¥ó¤Ï¥¹¥£¥Ã¥Á¥ª¥Õ¤Ë¤Ê¤ë¤³¤È¤¬¤Ç¤­¤ë¤³¤È¤ËÃí°Õ¤¹¤ë¤³¤È¤Ï½ÅÍפǤ¹¡£

be disconnected, or can be out of range.
ÀÚÃǤ䡢Èϰϳ°¤Ë½Ð¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

If they remain inactive for too long, they will automatically switch off, even if they are connected. 
¤¢¤Þ¤ê¤Ë¤âŤ¯¥¤¥ó¥¢¥¯¥Æ¥£¥Ö¤Ê¾õÂÖ¤¬¤Ä¤Å¤¯¤È¡¢¤½¤ì¤¬Àܳ¤µ¤ì¤Æ¤¤¤Æ¤â¼«Æ°Åª¤Ë¥¹¥£¥Ã¥Á¤¬¥ª¥Õ¤Ë¤Ê¤ë¤Ç¤·¤ç¤¦¡£

This means that even if a Wii may have 4 remotes connected to it, it is possible that only remote 3 is currently active.
¤³¤ì¤Ï¡¢¤â¤·¡¢Wii¤¬4¤Ä¤Î¥ê¥â¥³¥ó¤ÎÀܳ¤ò¤â¤Ã¤Æ¤¤¤Æ¤â¡¢¸½ºß¤Ï3¤Ä¤À¤±¤¬¥¢¥¯¥Æ¥£¥Ö¤È¤¤¤¦¤³¤È¤¬²Äǽ¤Ç¤¢¤ë¤³¤È¤ò°ÕÌ£¤·¤Þ¤¹¡£

It is also possible that none are active.
°ì¤Ä¤â¥¢¥¯¥Æ¥£¥Ö¤Ç¤Ï¤Ê¤¤¡¢¤È¤¤¤¦¤³¤È¤âƱÍͤ˲Äǽ¤Ç¤¹¡£

For this reason, it is important to check that the remote is enabled before attempting to use its data values.
¤³¤ÎÍýͳ¤Ç¡¢¥Ç¡¼¥¿¤ÎÃͤòÍøÍѤ¹¤ëÁ°¤Ë¡¢¥ê¥â¥³¥ó¤¬ÍøÍѤǤ­¤ë¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤³¤È¤Ï½ÅÍפǤ¹¡£

It is also important not to assume that if a remote is disabled, that no further remotes will be enabled.
¥ê¥â¥³¥ó¤¬ÍøÍѤǤ­¤Ê¤¤¤Ê¤é¤â¤Ï¤ä¤½¤Î¥ê¥â¥³¥ó¤ÏÍøÍѤǤ­¤Ê¤¤¤È¤Ï²¾Äê¤Ç¤­¤Ê¤¤¤³¤È¤â½ÅÍפǤ¹¡£

If a Wii Remote is enabled, the KpadStatus.isEnabled property for that remote will be 1 for that remote.
¤â¤·¡¢Wii¥ê¥â¥³¥ó¤¬ÍøÍѤǤ­¤ë¤Ê¤é¡¢¤½¤Î¥ê¥â¥³¥ó¤ÎKpadStatus.isEnable¥×¥í¥Ñ¥Æ¥£¤Ï¡¢1¤Ë¤Ê¤ê¤Þ¤¹¡£

If the remote is not enabled, 
¤½¤Î¥ê¥â¥³¥ó¤¬ÍøÍѤǤ­¤Ê¤¤¤Ê¤é¡¢

the KpadStatus.isEnabled property will be 0 for that remote, and none of the other properties will be defined at all.
¤½¤Î¥ê¥â¥³¥ó¤ÎKpadStatus.isEnabled¥×¥í¥Ñ¥Æ¥£¤Ï¡Ö0¡×¤Ë¤Ê¤ê¤Þ¤¹¡£
¤½¤·¤Æ¡¢¤½¤Î¤Û¤«¤Î¥×¥í¥Ñ¥Æ¥£¤Ï¤¹¤Ù¤ÆÄêµÁ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó¡£

To check if a remote is enabled, simply use the following:
¥ê¥â¥³¥ó¤¬ÍøÍѤǤ­¤ë¤«¤É¤¦¤«¤ò¥Á¥§¥Ã¥¯¤¹¤ë¤¿¤á¤Ë¤Ï¡¢Ã±½ã¤Ë²¼µ­¤òÍøÍѤ·¤Þ¤¹¡£

¡¡¡¡if( theKpadStatusObject.isEnabled ) { ... }

Another important point is that the data is only valid if the remote is able to see the Sensor Bar.
Ê̤νÅÍפʥݥ¤¥ó¥È¤Ï¡¢¤â¤·¥ê¥â¥³¥ó¤¬¥»¥ó¥µ¡¼¥Ð¡¼¤ò¤ß¤ë¤³¤È¤¬¤Ç¤­¤ë¤Ê¤é¡¢¤½¤Î¥Ç¡¼¥¿¤Ïvalid¤Ç¤¢¤ë¡¢
¤È¤¤¤¦¤³¤È¤Ç¤¹¡£

In other words, it must be pointing approximately towards the screen.
¸À¤¤´¹¤¨¤ë¤È¡¢¤ª¤ª¤è¤½¥¹¥¯¥ê¡¼¥ó¤Ë¸þ¤«¤Ã¤Æ¥Ý¥¤¥ó¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

The actual area that it can see is approximately 1.75 times the width of the screen, and 1.15 times the height, though these will vary significantly depending on how close the user is to the screen.
¼ÂºÝ¤Î¥¨¥ê¥¢¤Ï¥¹¥¯¥ê¡¼¥ó¤Î²£Éý¤Î¤ª¤ª¤è¤½1.75Çܤǡ¢¹â¤µ¤Ï1.15Çܤǡ¢¥æ¡¼¥¶¡¼¤¬¥¹¥¯¥ê¡¼¥ó¤Ë¤É¤ì¤¯¤é¤¤¶á¤Å¤¤¤Æ¤¤¤ë¤«¤Ë¤è¤ê¤Þ¤¹¡£

The Wii Remote must also be within the detectable distance from the sensor bar,
Wii¥ê¥â¥³¥ó¤Ï¡¢¥»¥ó¥µ¡¼¥Ð¡¼¤«¤éµ÷Î¥¤ò¸¡½Ð¤Ç¤­¤ëµ÷Î¥¤ÎÃæ¤Ë¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡£

between approximately 0.55 and 3 metres away.
¤À¤¤¤¿¤¤0.55¡Á3m¤Î´Ö¡£

If the remote is not within this detectable distance, and pointing within this visible area, 
¤â¤·¡¢¥ê¥â¥³¥ó¤¬¸¡½Ð²Äǽ¤Êµ÷Î¥¤Ë¤Ê¤«¤Ã¤¿¤ê¡¢É½¼¨²Äǽ¤Ê¥¨¥ê¥¢¤ÎÃæ¤ò¥Ý¥¤¥ó¥È¤·¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢

then all relevant properties retain the last value they had, and will no longer update.
¤¹¤Ù¤Æ¤Î¤½¤ì¤é¤¬»ý¤Ã¤Æ¤¤¤¿ºÇ¸å¤ÎŬÀڤʥץí¥Ñ¥Æ¥£¤òÊÝ»ý¤·¡¢¹¹¿·¤µ¤ì¤Þ¤»¤ó¡£

Properties like hold will still continue to update, as they do not relate to motion sensitivity. 
¥×¥í¥Ñ¥Æ¥£¤Ï¡¢¹¹¿·¤µ¤ì³¤±¤ë¤Þ¤ÇÊÝ»ý¤µ¤ì¡¢¥â¡¼¥·¥ç¥ó¥»¥ó¥·¥Æ¥£¥Ó¥Æ¥£¤È´ØÏ¢¤Å¤±¤é¤ì¤Þ¤»¤ó¡£(???)

The KpadStatus.dpdValidity property can help identify when the remote cannot see the Sensor Bar.
¡ÖKpadStatus.dpdValidity¡×¥×¥í¥Ñ¥Æ¥£¤Ï¡¢¥ê¥â¥³¥ó¤¬¥»¥ó¥µ¡¼¥Ð¡¼¤ò¸«¤ë¤³¤È¤¬¤Ç¤­¤Ê¤¤¤È¤­¤ò¼±Ê̤¹¤ë¤³¤È¤ò½õ¤±¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

<b>Available KpadStatus properties</b>
ÍøÍѤǤ­¤ëKpadStatus¥×¥í¥Ñ¥Æ¥£

°Ê²¼¡¢¤¤¤¯¤Ä¤«¥Ô¥Ã¥¯¥¢¥Ã¥×

dpdScreenX, dpdScreenY
¡¡event.pageX¤ä¡¢event.pageY ¤ÈƱ¤¸

dpdX
¡¡¥«¡¼¥½¥ë¤Î¿åÊ¿°ÌÃÖ¡£°ìÈÖº¸¤¬¡Ö-1¡×¤Ç°ìÈÖ±¦¤¬¡Ö1¡×¡£
¡¡-1.75¤«¤é1.75 ¤¬¤È¤ê¤¦¤ë¤é¤·¤¤¡£

dpdY
¡¡¥«¡¼¥½¥ë¤Î¿âľ°ÌÃÖ¡£°ìÈ־夬¡Ö-1¡×¤Ç°ìÈÖ²¼¤¬¡Ö1¡×¡£¥æ¡¼¥¶¡¼¤¬¥»¥ó¥µ¡¼¥Ð¡¼¤Ë¶á¤¤¤«¤É¤¦¤«¤Ë¤è¤Ã¤Æ-1.15¤«¤é1.15¤¬¤È¤ê¤¦¤ë¤é¤·¤¤¡£

hold
¡¡¥ê¥â¥³¥ó¤Î¥Ü¥¿¥ó¤Î¤É¤ì¤¬²¡¤µ¤ì¤Æ¤¤¤ë¤«¡£

dpdRollX
¡¡Àµ¤ÎÃͤÀ¤È¥ê¥â¥³¥ó¤Ï¾å¡¢Éé¤À¤È²¼¤ò¸þ¤¤¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
¡¡¼ÂºÝ¤Î³ÑÅÙ¤ò¼èÆÀ¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ë¤é¤·¤¤¡£

¡¡¡¡¡¡Math.atan2(KpadStatus.dpdRollY,KpadStatus.dpdRollX)

dpdRollY
¡¡Àµ¤ÎÃͤÀ¤È¥ê¥â¥³¥ó¤Ï±¦¡¢Éé¤À¤Èº¸¤ò¸þ¤¤¤Æ¤¤¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£
¡¡¼ÂºÝ¤Î³ÑÅÙ¤ò¼èÆÀ¤¹¤ë¤Ë¤Ï¼¡¤Î¤è¤¦¤Ë¤¹¤ë¤é¤·¤¤¡£

¡¡¡¡¡¡Math.atan2(KpadStatus.dpdRollY,KpadStatus.dpdRollX)

dpdDistance
¡¡Wii¥ê¥â¥³¥ó¤È¥»¥ó¥µ¡¼¥Ð¡¼¤Îµ÷Î¥¤Î¥á¡¼¥È¥ë¡£0.55¡Á3¡£


°Ê²¼¥µ¥ó¥×¥ë¥³¡¼¥É¤Ê¤É¤¬¤Ä¤Å¤¯...


°Ê¾å¤Ç¤¹¡£
¤ª¤«¤·¤ÊÌõ¤¬Â¿¡¹¤¢¤ë¤È»×¤¤¤Þ¤¹¤¬¡¢½Ð¤µ¤Ê¤¤¤è¤ê¤Ï¤Þ¤·¤«¤È»×¤¤¤µ¤é¤·¤Æ¸«¤Þ¤·¤¿¡£
¤³¤ó¤Ê¤â¤Î¤Ç¤ªÌò¤ËΩ¤Æ¤ì¤Ð¹¬¤¤¤Ç¤¹¡£¥Õ¥£¡¼¥É¥Ð¥Ã¥¯¤¬¤¢¤ê¤Þ¤·¤¿¤éÀ§È󤯤À¤µ¤¤¡£


ËͤâÀ§ÈóWii¥ê¥â¥³¥ó¤ÎÆÃÀ­¤òÀ¸¤«¤·¤¿¥¢¥×¥ê¤òºî¤Ã¤Æ¤ß¤¿¤¤¤È»×¤¤¤Þ¤¹!


¥È¥Ã¥×   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

¥¢¡¼¥¯¥¦¥§¥Ö¤Î¥µ¡¼¥Ó¥¹¤ä¥½¥ê¥å¡¼¥·¥ç¥ó¤Ï¤³¤Á¤é