コード例 #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.go プロジェクト: emlai/go-sdl2
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetAxis)
func (ctrl *GameController) GetAxis(axis GameControllerAxis) int16 {
	return int16(C.SDL_GameControllerGetAxis(ctrl.cptr(), axis.c()))
}