Tao.Sdl SDK Documentation |
|
Sdl.SDL_JoystickGetButton Method
Get the current state of a given button on a given joystick.
[Visual Basic]
Public Shared Function SDL_JoystickGetButton( _
ByVal
joystick As
IntPtr, _
ByVal
button As
Integer _
) As
Byte
[C#]
public static
byte SDL_JoystickGetButton(
IntPtr joystick,
int button);
Parameters
-
joystick
-
-
button
-
Return Value
1 if the button is pressed. Otherwise, 0.
Remarks
SDL_JoystickGetButton returns the current state of the given button on the given joystick.
Binds to C-function in SDL_joystick.h
Uint8 SDL_JoystickGetButton(SDL_Joystick *joystick, int button);
See Also
Sdl Class | Tao.Sdl Namespace | SDL_JoystickNumButtons