docs/man3/SDL_JoyAxisEvent.3
author Sam Lantinga <slouken@libsdl.org>
Wed, 08 Mar 2006 18:30:12 +0000
changeset 1486 9d77fc9d0ace
parent 181 e5bc29de3f0a
child 2283 546f7c1eb755
permissions -rw-r--r--
Re-added C runtime support for Visual C++ 5,6
slouken@181
     1
.TH "SDL_JoyAxisEvent" "3" "Tue 11 Sep 2001, 22:59" "SDL" "SDL API Reference" 
slouken@0
     2
.SH "NAME"
slouken@0
     3
SDL_JoyAxisEvent\- Joystick axis motion event structure
slouken@0
     4
.SH "STRUCTURE DEFINITION"
slouken@0
     5
.PP
slouken@0
     6
.nf
slouken@0
     7
\f(CWtypedef struct{
slouken@0
     8
  Uint8 type;
slouken@0
     9
  Uint8 which;
slouken@0
    10
  Uint8 axis;
slouken@0
    11
  Sint16 value;
slouken@0
    12
} SDL_JoyAxisEvent;\fR
slouken@0
    13
.fi
slouken@0
    14
.PP
slouken@0
    15
.SH "STRUCTURE DATA"
slouken@0
    16
.TP 20
slouken@0
    17
\fBtype\fR
slouken@0
    18
\fBSDL_JOYAXISMOTION\fP
slouken@0
    19
.TP 20
slouken@0
    20
\fBwhich\fR
slouken@0
    21
Joystick device index
slouken@0
    22
.TP 20
slouken@0
    23
\fBaxis\fR
slouken@0
    24
Joystick axis index
slouken@0
    25
.TP 20
slouken@0
    26
\fBvalue\fR
slouken@0
    27
Axis value (range: -32768 to 32767)
slouken@0
    28
.SH "DESCRIPTION"
slouken@0
    29
.PP
slouken@0
    30
\fBSDL_JoyAxisEvent\fR is a member of the \fI\fBSDL_Event\fR\fR union and is used when an event of type \fBSDL_JOYAXISMOTION\fP is reported\&.
slouken@0
    31
.PP
slouken@0
    32
A \fBSDL_JOYAXISMOTION\fP event occurs when ever a user moves an axis on the joystick\&. The field \fBwhich\fR is the index of the joystick that reported the event and \fBaxis\fR is the index of the axis (for a more detailed explaination see the \fIJoystick section\fR)\&. \fBvalue\fR is the current position of the axis\&.
slouken@0
    33
.SH "SEE ALSO"
slouken@0
    34
.PP
slouken@0
    35
\fI\fBSDL_Event\fR\fR, \fIJoystick Functions\fR, \fI\fBSDL_JoystickEventState\fP\fR, \fI\fBSDL_JoystickGetAxis\fP\fR
slouken@181
    36
...\" created by instant / docbook-to-man, Tue 11 Sep 2001, 22:59