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

Interface for sending input events to game controllers. More...

#include <IInputReceiver.h>

Inheritance diagram for KODI::JOYSTICK::IInputReceiver:
KODI::JOYSTICK::CDriverReceiving PERIPHERALS::CAddonInputHandling

Public Member Functions

virtual ~IInputReceiver ()=default
 
virtual bool SetRumbleState (const FeatureName &feature, float magnitude)=0
 Set the value of a rumble motor.
 

Detailed Description

Interface for sending input events to game controllers.

Constructor & Destructor Documentation

◆ ~IInputReceiver()

virtual KODI::JOYSTICK::IInputReceiver::~IInputReceiver ( )
virtualdefault

Member Function Documentation

◆ SetRumbleState()

virtual bool KODI::JOYSTICK::IInputReceiver::SetRumbleState ( const FeatureName & feature,
float magnitude )
pure virtual

Set the value of a rumble motor.

Parameters
featureThe name 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 KODI::JOYSTICK::CDriverReceiving, and PERIPHERALS::CAddonInputHandling.


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