Line 24:
Line 24:
Use your friend google to learn how to use SDL.
Use your friend google to learn how to use SDL.
−
== Uses of SDL ==
+
== Using SDL ==
SDL has graphics, sound, and input all in one. SDL is a very popular library used in many open source programs. It is most commonly used in games, but it is also used in emulators and media players. SDL is very easy to use and it is very easy to port apps that use it.
SDL has graphics, sound, and input all in one. SDL is a very popular library used in many open source programs. It is most commonly used in games, but it is also used in emulators and media players. SDL is very easy to use and it is very easy to port apps that use it.
+
+
=== Wiimote SDL joystick mapping
+
The wiimote buttons are mapped this way in SDL:
+
+
{| class="wikitable"
+
|-
+
! SDL button index !! {{WiimoteHorizontal}} !! {{Nunchuck}} !! {{ClassicController}}
+
|-
+
| 0 || {{WiimoteAButton}}
+
|-
+
| 1 || {{WiimoteBButton}}
+
|-
+
| 2 || {{Wiimote1Button}}
+
|-
+
| 3 || {{Wiimote2Button}}
+
|-
+
| 4 || {{WiimoteMinusButton}}
+
|-
+
| 5 || {{WiimotePlusButton}}
+
|-
+
| 6 || {{WiimoteHomeButton}}
+
|-
+
| 7 || || {{NunchuckZButton}}
+
|-
+
| 8 || || {{NunchuckCButton}}
+
|-
+
| 9 || || || {{ClassicLTrigger}}
+
|-
+
|10 || || || {{ClassicLTrigger}}
+
|-
+
|11 || || || {{ClassicRTrigger}}
+
|-
+
|12 || || || {{ClassicZLButton}}
+
|-
+
|13 || || || {{ClassicZRButton}}
+
|-
+
|14 || || || {{ClassicMinusButton}}
+
|-
+
|15 || || || {{ClassicPlusButton}}
+
|}
== Bugs ==
== Bugs ==