WiiRemote hardware input ID's when using the device directly Hardware ID's: "Nintendo RVL-CNT-01-TR" and "Nintendo RVL-CNT-01" -- the latter does not have the Motion-Plus attachment
NOTE: On Windows this requires the HID-Wiimote driver by Julian Löhr, available here: https://github.com/jloehr/HID-Wiimote
Static variables
staticfinalread onlyLEFT_ANALOG_STICK:FlxTypedGamepadAnalogStick<WiiRemoteID> = new FlxTypedGamepadAnalogStick<WiiRemoteID>(0, 1, { up : LEFT_STICK_UP, down : LEFT_STICK_DOWN, left : LEFT_STICK_LEFT, right : LEFT_STICK_RIGHT })
the nunchuk only has the "left" analog stick
staticfinalread onlyREMOTE_DPAD:FlxTypedGamepadAnalogStick<WiiRemoteID> = new FlxTypedGamepadAnalogStick<WiiRemoteID>(0, 1, { up : REMOTE_DPAD_UP, down : REMOTE_DPAD_DOWN, left : REMOTE_DPAD_LEFT, right : REMOTE_DPAD_RIGHT, threshold : 0.5, mode : ONLY_DIGITAL })
staticfinalread onlyRIGHT_ANALOG_STICK:FlxTypedGamepadAnalogStick<WiiRemoteID> = new FlxTypedGamepadAnalogStick<WiiRemoteID>(2, 3, { up : RIGHT_STICK_UP, down : RIGHT_STICK_DOWN, left : RIGHT_STICK_LEFT, right : RIGHT_STICK_RIGHT })
the classic controller has both the "left" and "right" analog sticks
Variables
inlineread onlyREMOTE_ONE:WiiRemoteID = 9
Things to add: - Accelerometer (in both remote and nunchuk) - Gyroscope (in Motion-Plus version only) - IR camera (position tracking) - Rumble - Speaker