Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
No Matches
KODI::JOYSTICK::IDriverReceiver Class Referenceabstract

Interface for sending input events to joystick drivers. More...

#include <IDriverReceiver.h>

Inheritance diagram for KODI::JOYSTICK::IDriverReceiver:

Public Member Functions

virtual ~IDriverReceiver ()=default
virtual bool SetMotorState (unsigned int motorIndex, float magnitude)=0
 Set the value of a rumble motor.

Detailed Description

Interface for sending input events to joystick drivers.

Constructor & Destructor Documentation

◆ ~IDriverReceiver()

virtual KODI::JOYSTICK::IDriverReceiver::~IDriverReceiver ( )

Member Function Documentation

◆ SetMotorState()

virtual bool KODI::JOYSTICK::IDriverReceiver::SetMotorState ( unsigned int motorIndex,
float magnitude )
pure virtual

Set the value of a rumble motor.

motorIndexThe driver index of the motor to rumble
magnitudeThe motor's new magnitude of vibration in the closed interval [0, 1]
True if the event was handled otherwise false

Implemented in PERIPHERALS::CPeripheralJoystick.

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