From b421d4e7e06f977436b6e6195b95ca44d884e0c0 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 2 Jun 2019 20:50:28 -0400 Subject: Add guile-sdl2 manual. --- manuals/guile-sdl2/Joysticks.html | 155 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 155 insertions(+) create mode 100644 manuals/guile-sdl2/Joysticks.html (limited to 'manuals/guile-sdl2/Joysticks.html') diff --git a/manuals/guile-sdl2/Joysticks.html b/manuals/guile-sdl2/Joysticks.html new file mode 100644 index 0000000..4ce9098 --- /dev/null +++ b/manuals/guile-sdl2/Joysticks.html @@ -0,0 +1,155 @@ + + + + + + +Joysticks (Guile-SDL2) + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Previous: , Up: Input   [Contents][Index]

+
+
+ +

3.3.3 Joysticks

+ +
+
(use-modules (sdl2 input joystick))
+
+ +
+
Procedure: num-joysticks
+

Return the current number of connected joystick devices. +

+ +
+
Procedure: open-joystick device-index
+

Return a joystick object for the physical joystick device associated +with device-index. +

+ +
+
Procedure: close-joystick joystick
+

Close joystick. +

+ +
+
Procedure: joystick-instance-id joystick
+

Return the instance id of joystick. +

+ +
+
Procedure: joystick-power-level joystick
+

Return the symbolic battery power level for joystick, either +unknown, empty, low, medium, full, +or wired. +

+ +
+
Procedure: joystick-num-axes joystick
+

Return the number of axes for joystick. +

+ +
+
Procedure: joystick-num-balls joystick
+

Return the number of balls for joystick. +

+ +
+
Procedure: joystick-num-buttons joystick
+

Return the number of buttons for joystick. +

+ +
+
Procedure: joystick-num-hats joystick
+

Return the number of hats for joystick. +

+ + + + + + -- cgit v1.2.3