コード例 #1
0
ファイル: sdl.go プロジェクト: kearsley/Go-SDL
// Enable/disable joystick event polling. If joystick events are
// disabled, you must call SDL_JoystickUpdate() yourself and check the
// state of the joystick when you want joystick information. The state
// can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
func JoystickEventState(state int) int {
	GlobalMutex.Lock()
	result := int(C.SDL_JoystickEventState(C.int(state)))
	GlobalMutex.Unlock()
	return result
}
コード例 #2
0
ファイル: sdl_joystick.go プロジェクト: TomMurray/go-sdl2
func JoystickEventState(state int) int {
	_state := (C.int)(state)
	return (int)(C.SDL_JoystickEventState(_state))
}
コード例 #3
0
ファイル: sdl.go プロジェクト: gnanderson/Go-SDL
func JoystickEventState(flag int) int {
	return int(C.SDL_JoystickEventState(C.int(flag)))
}
コード例 #4
0
ファイル: joystick.go プロジェクト: tanema/amore
// JoystickEventState (https://wiki.libsdl.org/SDL_JoystickEventState)
func JoystickEventState(state int) int {
	return (int)(C.SDL_JoystickEventState(C.int(state)))
}
コード例 #5
0
ファイル: input.go プロジェクト: krig/Go-SDL2
// Enable/disable joystick event polling. If joystick events are
// disabled, you must call SDL_JoystickUpdate() yourself and check the
// state of the joystick when you want joystick information. The state
// can be one of SDL_QUERY, SDL_ENABLE or SDL_IGNORE.
func JoystickEventState(state int) int {
	result := int(C.SDL_JoystickEventState(C.int(state)))
	return result
}