In memory of Ben “bushing” Byer, who passed away on Monday, February 8th, 2016.

Changes

Jump to navigation Jump to search
212 bytes added ,  18:55, 1 December 2012
no edit summary
Line 352: Line 352:     
=== wiiu.remote ===
 
=== wiiu.remote ===
The <tt>wiiu.remote</tt> object allows Javascript functions to read the current state of the primary Wii Remote and its Motion Plus accessory.
+
While Internet Browser exposes a <tt>wiiu.remote</tt> object, at the present time no way is known how to activate it. Presumedly it would allow Javascript functions to read the current state of the primary Wii Remote and its Motion Plus accessory.
   −
<b>TODO:</b> <i>Determine if it's possible to read the accessories and the second through fourth Wii Remotes like the Wii's Internet Channel could.</i>
+
All subsequent documentation is only a best guess at functionality based on the property names and how it worked on the Wii.
 
  −
<b>TODO:</b> <i>Figure out what contentX, contentY, and isDataValid are.</i>
      
==== Reading values ====
 
==== Reading values ====
In order to read any values from the Wii Remote, input must first be enabled by setting <tt>wiiu.remote.isEnabled = 1</tt>.
+
In order to read any values from the Wii Remote, the function <tt>wiiu.remote.update()</tt> must be invoked. If the function call were to be successful, this would populate all of the properties on the <tt>wiiu.remote</tt> object with the current information about the pointer, accelerometers, gyroscopes, and buttons of the primary Wii Remote. It is safe to invoke this function in a timer for real-time updates.
   −
Once enabled, the function <tt>wiiu.remote.update()</tt> will populate all of the properties on the <tt>wiiu.remote</tt> object with the current information <i>(about what?)</i>. It is safe to invoke this function in a timer for real-time updates.
+
After a successful update, <tt>wiiu.remote.isDataValid</tt> will be set to 1. If no update has happened yet, or if no Wii Remotes are not connected, it will be set to 0.
    
==== Buttons ====
 
==== Buttons ====
51

edits

Navigation menu