1SDL_JoyAxisEvent(3) SDL API Reference SDL_JoyAxisEvent(3)
2
3
4
6 SDL_JoyAxisEvent - Joystick axis motion event structure
7
9 typedef struct{
10 Uint8 type;
11 Uint8 which;
12 Uint8 axis;
13 Sint16 value;
14 } SDL_JoyAxisEvent;
15
17 type SDL_JOYAXISMOTION
18
19 which Joystick device index
20
21 axis Joystick axis index
22
23 value Axis value (range: -32768 to 32767)
24
26 SDL_JoyAxisEvent is a member of the SDL_Event union and is used when an
27 event of type SDL_JOYAXISMOTION is reported.
28
29 A SDL_JOYAXISMOTION event occurs when ever a user moves an axis on the
30 joystick. The field which is the index of the joystick that reported
31 the event and axis is the index of the axis (for a more detailed
32 explaination see the Joystick section). value is the current position
33 of the axis.
34
36 SDL_Event, Joystick Functions, SDL_JoystickEventState, SDL_JoystickGe‐
37 tAxis
38
39
40
41SDL Tue 11 Sep 2001, 22:59 SDL_JoyAxisEvent(3)