Clementine
Source
Clem
Events
Event.h
1
// Copyright 2021 SMS
2
// License(Apache-2.0)
3
4
#pragma once
5
9
class
Event
10
{
11
public
:
12
enum class
Type
13
{
14
key,
15
mouse,
16
window,
17
18
key_press,
19
key_release,
20
key_repeat,
21
22
mouse_move,
23
mouse_click,
24
mouse_double_click,
25
mouse_wheeled,
26
27
window_resize,
28
window_close
29
};
30
31
virtual
~
Event
() =
default
;
32
};
33
34
#define EVENT_CLASS_TYPE(type) \
35
static Event::Type getEventType() \
36
{ \
37
return Event::Type::type; \
38
}
Event
事件.
Definition:
Event.h:9
Generated by
1.8.13