Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class to translate input events from higher-level features to driver primitives. More...
#include <DriverReceiving.h>
Public Member Functions | |
CDriverReceiving (IDriverReceiver *receiver, IButtonMap *buttonMap) | |
~CDriverReceiving () override=default | |
bool | SetRumbleState (const FeatureName &feature, float magnitude) override |
Set the value of a rumble motor. | |
Public Member Functions inherited from KODI::JOYSTICK::IInputReceiver | |
virtual | ~IInputReceiver ()=default |
Class to translate input events from higher-level features to driver primitives.
A button map is used to translate controller features to driver primitives. The button map has been abstracted away behind the IButtonMap interface so that it can be provided by an add-on.
CDriverReceiving::CDriverReceiving | ( | IDriverReceiver * | receiver, |
IButtonMap * | buttonMap ) |
|
overridedefault |
|
overridevirtual |
Set the value of a rumble motor.
feature | The name of the motor to rumble |
magnitude | The motor's new magnitude of vibration in the closed interval [0, 1] |
Implements KODI::JOYSTICK::IInputReceiver.