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