Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
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:
PERIPHERALS::CPeripheralJoystick

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 ( )
virtualdefault

Member Function Documentation

◆ SetMotorState()

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

Set the value of a rumble motor.

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

Implemented in PERIPHERALS::CPeripheralJoystick.


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