예제 #1
0
파일: sdl.go 프로젝트: kearsley/Go-SDL
// Get the number of trackballs on a Joystick trackballs have only
// relative motion events associated with them and their state cannot
// be polled.
func (joystick *Joystick) NumBalls() int {
	return int(C.SDL_JoystickNumBalls(joystick.cJoystick))
}
예제 #2
0
func (joystick *Joystick) NumBalls() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumBalls(_joystick))
}
예제 #3
0
파일: sdl.go 프로젝트: gnanderson/Go-SDL
func (j *Joystick) NumBalls() int {
	return int(C.SDL_JoystickNumBalls((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
예제 #4
0
파일: joystick.go 프로젝트: tanema/amore
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumBalls)
func (joy *Joystick) NumBalls() int {
	return (int)(C.SDL_JoystickNumBalls(joy.cptr()))
}
예제 #5
0
파일: joystick.go 프로젝트: beoran/fungo
// Get the number of trackballs on a joystick
// Joystick trackballs have only relative motion events associated
// with them and their state cannot be polled.
func JoystickNumBalls(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumBalls(joystick))
}