Include functions for monitoring distance/roll.
This commit is contained in:
parent
31b3d9c0bb
commit
434f069185
4 changed files with 113 additions and 8 deletions
|
|
@ -26,6 +26,16 @@ Wii.Remote = function(remote_id, opts) {
|
|||
this.remote_id = remote_id;
|
||||
this.opts = opts;
|
||||
|
||||
/**
|
||||
* Default these properties to undefined, since that's what
|
||||
* the Wii returns anyway, and it's worth it to try and stay (somewhat)
|
||||
* close to the core tech.
|
||||
*/
|
||||
this.x = undefined;
|
||||
this.y = undefined;
|
||||
this.roll = undefined;
|
||||
this.last_known_distance_from_screen = undefined;
|
||||
|
||||
/**
|
||||
* If this is the "main" wii_remote, then the bitwise checks will fail
|
||||
* because it's treated more as a "browsing" device. For these events,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue