BALL
1.4.79
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
BALL
VIEW
INPUT
buttonEvent.h
Go to the documentation of this file.
1
#ifndef BUTTONEVENT_H
2
#define BUTTONEVENT_H
3
4
#include <
BALL/VIEW/KERNEL/common.h
>
5
#include <
BALL/VIEW/INPUT/deviceEvent.h
>
6
7
#include <QtCore/QEvent>
8
9
namespace
BALL
10
{
11
namespace
VIEW
12
{
13
enum
InputDeviceButton
{
14
BUTTON1
= 1 << 0,
15
BUTTON2
= 1 << 1,
16
BUTTON3
= 1 << 2,
17
BUTTON4
= 1 << 3,
18
BUTTON5
= 1 << 4,
19
BUTTON6
= 1 << 5,
20
BUTTON7
= 1 << 6,
21
BUTTON8
= 1 << 7,
22
BUTTON9
= 1 << 8,
23
BUTTON10
= 1 << 9,
24
BUTTON11
= 1 << 10,
25
BUTTON12
= 1 << 11
26
};
27
28
typedef
QFlags<InputDeviceButton>
InputDeviceButtons
;
29
34
class
ButtonEvent
:
public
DeviceEvent
35
{
36
public
:
37
ButtonEvent
(
EventsIDs
type,
InputDeviceDriver
* dev,
InputDeviceButton
cause);
38
ButtonEvent
(
EventsIDs
type,
InputDeviceDriver
* dev,
InputDeviceButton
cause,
InputDeviceButtons
buttons
);
39
43
InputDeviceButton
button
()
const
{
return
cause_; }
44
48
InputDeviceButtons
buttons
()
const
{
return
buttons_; }
49
private
:
50
InputDeviceButton
cause_;
51
InputDeviceButtons
buttons_;
52
};
53
54
}
55
}
56
57
#endif //BUTTONEVENT_H
58
BALL::VIEW::BUTTON4
Definition:
buttonEvent.h:17
BALL::VIEW::EventsIDs
EventsIDs
Definition:
VIEW/KERNEL/common.h:71
BALL::VIEW::BUTTON10
Definition:
buttonEvent.h:23
BALL::VIEW::InputDeviceButton
InputDeviceButton
Definition:
buttonEvent.h:13
BALL::VIEW::BUTTON1
Definition:
buttonEvent.h:14
BALL::VIEW::ButtonEvent::ButtonEvent
ButtonEvent(EventsIDs type, InputDeviceDriver *dev, InputDeviceButton cause)
BALL::VIEW::BUTTON7
Definition:
buttonEvent.h:20
common.h
BALL::VIEW::ButtonEvent::buttons
InputDeviceButtons buttons() const
Definition:
buttonEvent.h:48
BALL::VIEW::ButtonEvent::button
InputDeviceButton button() const
Definition:
buttonEvent.h:43
BALL::VIEW::BUTTON5
Definition:
buttonEvent.h:18
BALL::VIEW::InputDeviceButtons
QFlags< InputDeviceButton > InputDeviceButtons
Definition:
buttonEvent.h:28
BALL::VIEW::BUTTON11
Definition:
buttonEvent.h:24
BALL::VIEW::ButtonEvent
Definition:
buttonEvent.h:34
BALL::VIEW::BUTTON9
Definition:
buttonEvent.h:22
BALL::VIEW::BUTTON3
Definition:
buttonEvent.h:16
BALL::VIEW::InputDeviceDriver
Definition:
inputDeviceDriver.h:18
BALL::VIEW::BUTTON6
Definition:
buttonEvent.h:19
BALL::VIEW::BUTTON12
Definition:
buttonEvent.h:25
BALL::VIEW::DeviceEvent
Definition:
deviceEvent.h:14
deviceEvent.h
BALL::VIEW::BUTTON2
Definition:
buttonEvent.h:15
BALL::VIEW::BUTTON8
Definition:
buttonEvent.h:21
Generated by
1.8.7