Golang C.SDL_JoystickNumAxes类(方法)实例源码

下面列出了Golang C.SDL_JoystickNumAxes 类(方法)源码代码实例,从而了解它的用法。

作者:kearsle    项目:Go-SD   
// Get the number of general axis controls on a joystick
func (joystick *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes(joystick.cJoystick))
}

作者:TomMurra    项目:go-sdl   
func (joystick *Joystick) NumAxes() int {
	_joystick := (*C.SDL_Joystick)(joystick)
	return (int)(C.SDL_JoystickNumAxes(_joystick))
}

作者:gnanderso    项目:Go-SD   
func (j *Joystick) NumAxes() int {
	return int(C.SDL_JoystickNumAxes((*C.SDL_Joystick)(unsafe.Pointer(j))))
}

作者:tanem    项目:amor   
// Joystick (https://wiki.libsdl.org/SDL_JoystickNumAxes)
func (joy *Joystick) NumAxes() int {
	return (int)(C.SDL_JoystickNumAxes(joy.cptr()))
}

作者:beora    项目:fung   
// Get the number of general axis controls on a joystick
func JoystickNumAxes(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickNumAxes(joystick))
}


问题


面经


文章

微信
公众号

扫码关注公众号