xbmc
xbmc
input
mouse
interfaces
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
{
23
class
IMouseInputHandler
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
KODI::MOUSE::IMouseInputHandler::ControllerID
virtual std::string ControllerID(void) const =0
The controller profile for this mouse input handler.
KODI
Controller configuration window.
Definition:
AudioDecoder.h:18
KODI::MOUSE::IMouseInputHandler
Interface for handling mouse events.
Definition:
IMouseInputHandler.h:23
KODI::MOUSE::IMouseInputHandler::OnMotion
virtual bool OnMotion(const PointerName &relpointer, int dx, int dy)=0
A relative pointer has moved.
KODI::MOUSE::IMouseInputHandler::OnButtonPress
virtual bool OnButtonPress(const ButtonName &button)=0
A mouse button has been pressed.
KODI::MOUSE::IMouseInputHandler::OnButtonRelease
virtual void OnButtonRelease(const ButtonName &button)=0
A mouse button has been released.
Generated by
1.8.13