示例#1
0
文件: sdl.go 项目: kearsley/Go-SDL
// Get the number of general axis controls on a joystick
func (joystick *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes(joystick.cJoystick))
}
示例#2
0
func (joystick *Joystick) NumAxes() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumAxes(_joystick))
}
示例#3
0
文件: sdl.go 项目: gnanderson/Go-SDL
func (j *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
示例#4
0
文件: joystick.go 项目: tanema/amore
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumAxes)
func (joy *Joystick) NumAxes() int {
	return (int)(C.SDL_JoystickNumAxes(joy.cptr()))
}
示例#5
0
文件: joystick.go 项目: beoran/fungo
// Get the number of general axis controls on a joystick
func JoystickNumAxes(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumAxes(joystick))
}