xbmc
LibInputPointer.h
1 /*
2  * Copyright (C) 2005-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 <libinput.h>
12 
13 struct pos
14 {
15  int X;
16  int Y;
17 };
18 
20 {
21 public:
22  CLibInputPointer() = default;
23  ~CLibInputPointer() = default;
24 
25  void ProcessButton(libinput_event_pointer *e);
26  void ProcessMotion(libinput_event_pointer *e);
27  void ProcessMotionAbsolute(libinput_event_pointer *e);
28  void ProcessAxis(libinput_event_pointer *e);
29 
30 private:
31  struct pos m_pos = { 0, 0 };
32 };
Definition: LibInputPointer.h:19
Definition: LibInputPointer.h:13