Пример #1
0
func JoystickOpened(n int) bool {
	return C.SDL_JoystickOpened(C.int(n)) != 0
}
Пример #2
0
// Returns 1 if the joystick has been opened, or 0 if it has not.
func JoystickOpened(deviceIndex int) int {
	GlobalMutex.Lock()
	opened := int(C.SDL_JoystickOpened(C.int(deviceIndex)))
	GlobalMutex.Unlock()
	return opened
}
Пример #3
0
// Returns true if the joystick has been opened, or false if it has not.
func JoystickOpened(index int) bool {
	return i2b(int(C.SDL_JoystickOpened(C.int(index))))
}