Packages
sdl2
SDL
Input
Joystick
count
create_from_instance_id
get_guid_buffer
get_guid_from_device
get_guid_from_string
get_guid_string
get_name_for_index
update
Joystick
get_attached
get_axis
get_ball
get_button
get_current_powerlevel
get_guid
get_hat
get_instance_id
get_name
is_haptic
num_axes
num_balls
num_buttons
num_hats
Joystick
Object Hierarchy:
SDL.Input.Joystick
SDL.Input.Joystick
SDL.Input.Joystick
Description:
[
CCode
( cname =
"SDL_Joystick"
, free_function =
"SDL_JoystickClose"
) ]
[
Compact
]
public
class
Joystick
Namespace:
SDL.Input
Package:
sdl2
Content:
Static methods:
public
static
int
count
()
public
static
Joystick
?
create_from_instance_id
(
JoystickID
id)
public
static
void
get_guid_buffer
(
JoystickGUID
guid,
uint8
[] ps)
public
static
JoystickGUID
get_guid_from_device
(
int
device_index)
public
static
JoystickGUID
get_guid_from_string
(
string
pch)
public
static
string
get_guid_string
(
JoystickGUID
guid)
public
static
unowned
string
get_name_for_index
(
int
device_index)
public
static
void
update
()
Creation methods:
public
Joystick
(
int
device_index)
Methods:
public
bool
get_attached
()
public
int16
get_axis
(
int
axis)
public
int
get_ball
(
int
ball,
out
int
dx,
out
int
dy)
public
ButtonState
get_button
(
int
button)
public
JoystickPowerLevel
get_current_powerlevel
()
public
JoystickGUID
get_guid
()
public
HatValue
get_hat
(
int
hat)
public
JoystickID
get_instance_id
()
public
unowned
string
get_name
()
public
int
is_haptic
()
public
int
num_axes
()
public
int
num_balls
()
public
int
num_buttons
()
public
int
num_hats
()