This class is the entry point into the functionality provided by the Wii console.
static public function isWii():BooleanReturn true if the current system is a Nintendo Wii, false if it is any other platform.
true if running on a Wii, false otherwise
static public function getRemote(identity:Number):WiiRemoteThe Wii can support up to four Wii Remote controllers. These controllers are numbered 0, 1, 2, and 3. Call this function with one of those four values to retrieve an object containing information about the specific remote.
identity | The id of the Wii Remote you wish to query. |
A WiiRemote object containing information about the remote.
static public function getPrimaryRemote():WiiRemote
Out of the four remotes, only one remote is allowed to directly interact
with the webpage. This remote is the "Primary" remote. While this remote
is usually the first remote (id 0), it is possible for other remotes to
be the primary remote if the first remote is turned off.
Use this function to retrieve a WiiRemote object containing information
about the primary remote. This function is useful in single-player games
where the user expects the remote that's turned on to be able to interact
with the Flash movie.
Authors upgrading from the earlier WiiCade API should use
Wii.getPrimaryRemote() in place of calling functions on the WiiMote
object.
The WiiRemote object for the current remote.