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