Changes

264 bytes added ,  14:01, 11 October 2011
m
Mouse buttoms
Line 64: Line 64:  
Note: Axis 6,7 and 8 are the wiimote itself axis' orientation.
 
Note: Axis 6,7 and 8 are the wiimote itself axis' orientation.
   −
=== SDL button mapping ===
+
=== SDL joystick button mapping ===
    
The D-pads on the Wii Remote and the Classic Controller are mapped as a [http://www.libsdl.org/cgi/docwiki.cgi/SDL_JoystickGetHat joystick hat]. Only one hat is reported per joystick, so when Classic Controller is plugged in, the D-pad on the Wii Remote is ignored. As far as orientation, SDL_HAT_UP is the up button on the Wii Remote's D-pad when it's held in horizontal position (with D-pad to the left).
 
The D-pads on the Wii Remote and the Classic Controller are mapped as a [http://www.libsdl.org/cgi/docwiki.cgi/SDL_JoystickGetHat joystick hat]. Only one hat is reported per joystick, so when Classic Controller is plugged in, the D-pad on the Wii Remote is ignored. As far as orientation, SDL_HAT_UP is the up button on the Wii Remote's D-pad when it's held in horizontal position (with D-pad to the left).
Line 72: Line 72:  
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! SDL button<br />index !! {{WiimoteHorizontal}} !! {{Nunchuk}} !! {{ClassicController}}
+
! SDL joystick<br />button index !! {{WiimoteHorizontal}} !! {{Nunchuk}} !! {{ClassicController}}
 
|-
 
|-
 
| 0 || {{WiimoteAButton}} || ||
 
| 0 || {{WiimoteAButton}} || ||
Line 113: Line 113:  
|-
 
|-
 
|19 || || || {{WiimoteHomeButton}}
 
|19 || || || {{WiimoteHomeButton}}
 +
|}
 +
 +
=== SDL mouse button mapping ===
 +
 +
{| class="wikitable"
 +
|-
 +
! SDL mouse<br />button index !! {{WiimoteHorizontal}} !! {{USBMouse}}
 +
|-
 +
| Left button || {{WiimoteAButton}} || Left button
 +
|-
 +
| Right button || {{WiimoteBButton}} || Right button
 +
|-
 
|}
 
|}
  
295

edits