xbmc
IMouseInputHandler.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 
11 #include "input/mouse/MouseTypes.h"
12 
13 #include <string>
14 
15 namespace KODI
16 {
17 namespace MOUSE
18 {
24 {
25 public:
26  virtual ~IMouseInputHandler(void) = default;
27 
33  virtual std::string ControllerID(void) const = 0;
34 
47  virtual bool OnMotion(const PointerName& relpointer, int dx, int dy) = 0;
48 
56  virtual bool OnButtonPress(const ButtonName& button) = 0;
57 
63  virtual void OnButtonRelease(const ButtonName& button) = 0;
64 };
65 } // namespace MOUSE
66 } // namespace KODI
virtual std::string ControllerID(void) const =0
The controller profile for this mouse input handler.
Controller configuration window.
Definition: AudioDecoder.h:18
Interface for handling mouse events.
Definition: IMouseInputHandler.h:23
virtual bool OnMotion(const PointerName &relpointer, int dx, int dy)=0
A relative pointer has moved.
virtual bool OnButtonPress(const ButtonName &button)=0
A mouse button has been pressed.
virtual void OnButtonRelease(const ButtonName &button)=0
A mouse button has been released.