示例#1
0
文件: sdl.go 项目: gnanderson/Go-SDL
func (j *Joystick) Index() int {
	return int(C.SDL_JoystickIndex((*C.SDL_Joystick)(unsafe.Pointer(j))))
}
示例#2
0
文件: sdl.go 项目: kearsley/Go-SDL
// Get the device index of an opened joystick.
func (joystick *Joystick) Index() int {
	return int(C.SDL_JoystickIndex(joystick.cJoystick))
}
示例#3
0
文件: joystick.go 项目: beoran/fungo
// Get the device index of an opened joystick.
func JoystickIndex(joystick *C.SDL_Joystick) int {
	return int(C.SDL_JoystickIndex(joystick))
}