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

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

作者:kearsle    项目:Go-SD   
// 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))
}

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

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

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

作者:beora    项目:fung   
// 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))
}


问题


面经


文章

微信
公众号

扫码关注公众号