FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Ship::joystick::JoystickListener Class Reference

Receives the changes between two joystick states, as an OIS JoyStickListener received events.

#include <JoystickInput.h>

+ Inheritance diagram for Ship::joystick::JoystickListener:

Public Member Functions

virtual void ButtonPressed (int button, const JoystickState &state)
 Button button went down (OIS buttonPressed).
 
virtual void ButtonReleased (int button, const JoystickState &state)
 Button button went up (OIS buttonReleased).
 
virtual void AxisMoved (int axis, const JoystickState &state)
 SDL axis axis changed (OIS axisMoved, or sliderMoved for a slider axis).
 
virtual void HatMoved (int hat, const JoystickState &state)
 Hat hat changed (OIS povMoved).
 

Member Function Documentation

◆ AxisMoved()

virtual void Ship::joystick::JoystickListener::AxisMoved ( int  axis,
const JoystickState &  state 
)
inlinevirtual

◆ ButtonPressed()

virtual void Ship::joystick::JoystickListener::ButtonPressed ( int  button,
const JoystickState &  state 
)
inlinevirtual

◆ ButtonReleased()

virtual void Ship::joystick::JoystickListener::ButtonReleased ( int  button,
const JoystickState &  state 
)
inlinevirtual

◆ HatMoved()

virtual void Ship::joystick::JoystickListener::HatMoved ( int  hat,
const JoystickState &  state 
)
inlinevirtual

The documentation for this class was generated from the following file: