예제 #1
0
파일: input.go 프로젝트: godispy/glfw
// GetJoystickPresent returns whether the specified joystick is present.
func JoystickPresent(joy Joystick) bool {
	ret := glfwbool(C.glfwJoystickPresent(C.int(joy)))
	panicError()
	return ret
}
예제 #2
0
파일: input.go 프로젝트: jasonrpowers/glfw3
//GetJoystickPresent returns whether the specified joystick is present.
func JoystickPresent(joy Joystick) bool {
	return glfwbool(C.glfwJoystickPresent(C.int(joy)))
}