11 #include "input/joysticks/interfaces/IInputHandler.h" 33 unsigned int motionTimeMs)
override;
37 unsigned int motionTimeMs)
override;
44 unsigned int motionTimeMs)
override;
47 unsigned int motionTimeMs)
override;
55 bool ResetTimers(
void);
bool OnAnalogStickMotion(const FeatureName &feature, float x, float y, unsigned int motionTimeMs) override
An analog stick has moved.
Definition: JoystickMonitor.cpp:61
bool OnThrottleMotion(const FeatureName &feature, float position, unsigned int motionTimeMs) override
A throttle has changed state.
Definition: JoystickMonitor.cpp:89
void OnButtonHold(const FeatureName &feature, unsigned int holdTimeMs) override
A digital button has been pressed for more than one event frame.
Definition: JoystickMonitor.h:30
bool OnWheelMotion(const FeatureName &feature, float position, unsigned int motionTimeMs) override
A wheel has changed state.
Definition: JoystickMonitor.cpp:76
std::string ControllerID() const override
The add-on ID of the game controller associated with this input handler.
Definition: JoystickMonitor.cpp:24
Controller configuration window.
Definition: AudioDecoder.h:18
bool OnButtonPress(const FeatureName &feature, bool bPressed) override
A digital button has been pressed or released.
Definition: JoystickMonitor.cpp:37
bool OnButtonMotion(const FeatureName &feature, float magnitude, unsigned int motionTimeMs) override
An analog button (trigger or a pressure-sensitive button) has changed state.
Definition: JoystickMonitor.cpp:48
bool HasFeature(const FeatureName &feature) const override
Return true if the input handler accepts the given feature.
Definition: JoystickMonitor.h:27
void OnInputFrame() override
Called at the end of the frame that provided input.
Definition: JoystickMonitor.h:48
std::string FeatureName
Name of a physical feature belonging to the joystick.
Definition: JoystickTypes.h:28
Monitors joystick input and resets screensaver/shutdown timers whenever motion occurs.
Definition: JoystickMonitor.h:22
bool OnAccelerometerMotion(const FeatureName &feature, float x, float y, float z) override
An accelerometer's state has changed.
Definition: JoystickMonitor.h:38
bool AcceptsInput(const FeatureName &feature) const override
Return true if the input handler is currently accepting input for the given feature.
Definition: JoystickMonitor.cpp:29