示例#1
0
func JoystickNameForIndex(device_index int) string {
	_device_index := (C.int)(device_index)
	return (C.GoString)(C.SDL_JoystickNameForIndex(_device_index))
}
示例#2
0
文件: joystick.go 项目: tanema/amore
// JoystickNameForIndex (https://wiki.libsdl.org/SDL_JoystickNameForIndex)
func JoystickNameForIndex(index int) string {
	return (C.GoString)(C.SDL_JoystickNameForIndex(C.int(index)))
}