kodi
Public Member Functions | List of all members
KODI::JOYSTICK::IDriverReceiver Class Referenceabstract

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

#include <IDriverReceiver.h>

Inheritance diagram for KODI::JOYSTICK::IDriverReceiver:
Inheritance graph
[legend]

Public Member Functions

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

Detailed Description

Interface for sending input events to joystick drivers.

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: