Example #1
0
func (gamecontroller *GameController) GetJoystick() *Joystick {
	_gamecontroller := (*C.SDL_GameController)(unsafe.Pointer(gamecontroller))
	return (*Joystick)(unsafe.Pointer(C.SDL_GameControllerGetJoystick(_gamecontroller)))
}
Example #2
0
// GameController (https://wiki.libsdl.org/SDL_GameControllerGetJoystick)
func (ctrl *GameController) GetJoystick() *Joystick {
	return (*Joystick)(unsafe.Pointer(C.SDL_GameControllerGetJoystick(ctrl.cptr())))
}