Пример #1
0
func (gamecontroller *GameController) GetAxis(axis GameControllerAxis) int16 {
	_gamecontroller := (*C.SDL_GameController)(gamecontroller)
	_axis := (C.SDL_GameControllerAxis)(axis)
	return (int16)(C.SDL_GameControllerGetAxis(_gamecontroller, _axis))
}
Пример #2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetAxis)
func (ctrl *GameController) GetAxis(axis GameControllerAxis) int16 {
	return int16(C.SDL_GameControllerGetAxis(ctrl.cptr(), axis.c()))
}