xbmc
DriverReceiving.h
1 /*
2  * Copyright (C) 2016-2018 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 
12 #include "input/joysticks/interfaces/IInputReceiver.h"
13 
14 #include <map>
15 
16 namespace KODI
17 {
18 namespace JOYSTICK
19 {
20 class IDriverReceiver;
21 class IButtonMap;
22 
32 {
33 public:
34  CDriverReceiving(IDriverReceiver* receiver, IButtonMap* buttonMap);
35 
36  ~CDriverReceiving() override = default;
37 
38  // implementation of IInputReceiver
39  bool SetRumbleState(const FeatureName& feature, float magnitude) override;
40 
41 private:
42  IDriverReceiver* const m_receiver;
43  IButtonMap* const m_buttonMap;
44 };
45 } // namespace JOYSTICK
46 } // namespace KODI
Button map interface to translate between the driver&#39;s raw button/hat/axis elements and physical joys...
Definition: IButtonMap.h:28
bool SetRumbleState(const FeatureName &feature, float magnitude) override
Set the value of a rumble motor.
Definition: DriverReceiving.cpp:23
Controller configuration window.
Definition: AudioDecoder.h:18
std::string FeatureName
Name of a physical feature belonging to the joystick.
Definition: JoystickTypes.h:28
Class to translate input events from higher-level features to driver primitives.
Definition: DriverReceiving.h:31
Interface for sending input events to game controllers.
Definition: IInputReceiver.h:21
Interface for sending input events to joystick drivers.
Definition: IDriverReceiver.h:19