Changes

28 bytes added ,  01:56, 6 November 2009
m
→‎SDL joystick mapping: === SDL button mapping ===
Line 56: Line 56:  
| 5 (vertical) || || || {{ClassicLTrigger}}
 
| 5 (vertical) || || || {{ClassicLTrigger}}
 
|}
 
|}
 +
 +
=== SDL 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).
56

edits