Ejemplo n.º 1
0
func (j *Joystick) Index() int {
	return int(C.SDL_JoystickIndex((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
Ejemplo n.º 2
0
// Get the device index of an opened joystick.
func (joystick *Joystick) Index() int {
	return int(C.SDL_JoystickIndex(joystick.cJoystick))
}
Ejemplo n.º 3
0
// Get the device index of an opened joystick.
func JoystickIndex(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickIndex(joystick))
}