SCENE C++ API
2.1.0
Plugin_API
plugin_api
lskeyevent.h
1
#pragma once
2
3
#include <core_api/lsglobaldefinitions.h>
4
5
#include <plugin_api/lsviewevent.h>
6
7
namespace
SCENE_API {
8
12
class
LSKeyEvent
:
public
LSViewEvent
13
{
14
public
:
15
24
PLUGIN_API_EXPORT
LSKeyEvent
(
ref_ptr<LSView>
view,
25
unsigned
keyCode,
26
unsigned
repCount,
27
unsigned
flags);
28
32
PLUGIN_API_EXPORT
unsigned
getKeyCode
()
const
;
33
37
PLUGIN_API_EXPORT
unsigned
getRepCount
()
const
;
38
42
PLUGIN_API_EXPORT
unsigned
getFlags
()
const
;
43
44
protected
:
45
// The key code of the key associated with the event
46
const
unsigned
m_keyCode;
47
48
// The repeat count of the key associated to the event
49
const
unsigned
m_repCount;
50
51
// The flags associated with the event
52
const
unsigned
m_flags;
53
};
54
55
}