Next: CDROM, Previous: Events, Up: The (sdl *) Modules [Contents][Index]
The external representation of a Joystick object is:
#<SDL-Joystick index>
where index is a decimal number of the joystick, or ‘-1’ if the object is not associated with a joystick.
Return the number of joysticks.
Return #t
iff obj is a joystick object.
Return the (string) name of the default joystick, or #f
.
Optional arg n specifies which joystick to check.
Return a handle to the default joystick opened for use. Optional arg n specifies which joystick to open.
Return #t
iff the default joystick is opened.
Optional arg n specifies which joystick to check.
Return the index of joystick.
Return the number of axes for joystick.
Return the number trackballs for joystick.
Return the number of hats for joystick.
Return number of buttons for joystick.
Update the state of all Joysticks.
Return #t
if joystick events are polled and queued (such
that it is unnecessary to “manually” call joystick-update
),
otherwise #f
.
If setting is specified, set joystick events polling
to the truth value of setting first.
For joystick, return state of axis.
Return relative motion of joystick trackball n
as two values: dx
and dy
(both integers).
For joystick, return state of hat n.
For joystick, return state of button n,
a symbol, one of: released
or pressed
.
Close a previously opened joystick.
Next: CDROM, Previous: Events, Up: The (sdl *) Modules [Contents][Index]