xbmc
IInputProvider.h
1 /*
2  * Copyright (C) 2017-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 
11 namespace KODI
12 {
13 namespace JOYSTICK
14 {
15 class IInputHandler;
16 
22 {
23 public:
24  virtual ~IInputProvider() = default;
25 
33  virtual void RegisterInputHandler(IInputHandler* handler, bool bPromiscuous) = 0;
34 
40  virtual void UnregisterInputHandler(IInputHandler* handler) = 0;
41 };
42 } // namespace JOYSTICK
43 } // namespace KODI
Definition: IInputHandler.h:16
Interface for classes that can provide input.
Definition: IInputProvider.h:21
virtual void RegisterInputHandler(IInputHandler *handler, bool bPromiscuous)=0
Register a handler for the provided input.
Controller configuration window.
Definition: AudioDecoder.h:18
Interface for handling input events for game controllers.
Definition: IInputHandler.h:25
virtual void UnregisterInputHandler(IInputHandler *handler)=0
Unregister a handler.