Пример #1
0
func (joystick *Joystick) GetAttached() bool {
	_joystick := (*C.SDL_Joystick)(joystick)
	return C.SDL_JoystickGetAttached(_joystick) > 0
}
Пример #2
0
// Joystick (https://wiki.libsdl.org/SDL_JoystickGetAttached)
func (joy *Joystick) GetAttached() bool {
	return C.SDL_JoystickGetAttached(joy.cptr()) > 0
}