bool Poll()
Take the stick position when the stick moved, otherwise move the position by the speed the directiona...
bool DispatchPriv(Message *pMsg) override
Act on a controller message.
~ExpressionStick() override
Remove the reader from the receivers of the controller messages.
float GetY() const
Definition expressionstick.h:79
float GetX() const
Definition expressionstick.h:74
bool HandleButton(JoypadInputMsg *pMsg)
Start or stop the movement of the position for a directional button of the controller.
void Reset()
Centre the position and stop its movement.
ExpressionStick(int nPad, int nStick)
Construct the reader of one stick and add it to the receivers of the controller messages.
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Receiver of engine messages.
Definition msgsink.h:21
Position of one analogue stick.
Definition joypad.h:58