xbmc
IMouseDriverHandler.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 namespace KODI
14 {
15 namespace MOUSE
16 {
22 {
23 public:
24  virtual ~IMouseDriverHandler(void) = default;
25 
37  virtual bool OnPosition(int x, int y) = 0;
38 
46  virtual bool OnButtonPress(BUTTON_ID button) = 0;
47 
53  virtual void OnButtonRelease(BUTTON_ID button) = 0;
54 };
55 } // namespace MOUSE
56 } // namespace KODI
virtual bool OnPosition(int x, int y)=0
Handle mouse position updates.
virtual bool OnButtonPress(BUTTON_ID button)=0
A mouse button has been pressed.
Controller configuration window.
Definition: AudioDecoder.h:18
Interface for handling mouse driver events.
Definition: IMouseDriverHandler.h:21
virtual void OnButtonRelease(BUTTON_ID button)=0
A mouse button has been released.