kodi
IDriverReceiver.h
1 /*
2  * Copyright (C) 2016-2024 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
11 namespace KODI
12 {
13 namespace JOYSTICK
14 {
21 {
22 public:
23  virtual ~IDriverReceiver() = default;
24 
33  virtual bool SetMotorState(unsigned int motorIndex, float magnitude) = 0;
34 };
35 } // namespace JOYSTICK
36 } // namespace KODI
virtual bool SetMotorState(unsigned int motorIndex, float magnitude)=0
Set the value of a rumble motor.
Definition: AudioDecoder.h:18
Interface for sending input events to joystick drivers.
Definition: IDriverReceiver.h:20