Loading [MathJax]/extensions/MathMenu.js
Photon Editor Library
2.0.0-beta
A physically based renderer.
Toggle main menu visibility
Home
Components
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
w
Functions
a
c
g
i
n
p
s
t
Variables
Typedefs
Enumerations
Enumerator
Concepts
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
~
Variables
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
Typedefs
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
v
w
Enumerations
Enumerator
Related Symbols
Files
File List
File Members
All
f
i
l
p
t
Functions
Variables
Macros
f
i
p
▼
Photon Editor Library
Home
Components
►
Namespaces
►
Concepts
►
Classes
▼
Files
▼
File List
►
Include
▼
Source
►
Api
►
App
►
Designer
▼
EditorCore
▼
Event
►
AppModuleActionEvent.h
►
DisplayClosedEvent.h
►
DisplayFocusChangedEvent.h
►
DisplayFramebufferResizedEvent.h
Event.cpp
►
Event.h
►
KeyEvent.h
►
KeyPressedEvent.h
►
KeyReleasedEvent.h
MouseButtonEvent.h
MouseButtonPressedEvent.h
MouseButtonReleasedEvent.h
►
SceneFramebufferResizedEvent.h
►
Query
►
Storage
►
Thread
►
EKeyCode.h
►
EMouseCode.h
►
FileSystemExplorer.cpp
►
FileSystemExplorer.h
IDGenerator.cpp
►
IDGenerator.h
►
Program.cpp
►
Program.h
►
TClassEventDispatcher.h
►
TEventDispatcher.h
►
TEventListener.h
►
Platform
►
Procedure
►
Render
►
RenderCore
►
ThirdParty
►
editor_lib_config.h
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Concepts
Loading...
Searching...
No Matches
KeyPressedEvent.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
EditorCore/Event/KeyEvent.h
"
4
5
#include <Common/primitive_type.h>
6
7
namespace
ph::editor
8
{
9
10
class
KeyPressedEvent
final :
public
KeyEvent
11
{
12
public
:
13
explicit
KeyPressedEvent
(
EKeyCode
key);
14
KeyPressedEvent
(
EKeyCode
key,
bool
isRepeating
);
15
16
/*EEventType getDynamicType() const override;
17
std::string toString() const override;*/
18
19
bool
isRepeating
()
const
;
20
21
private
:
22
uint8 m_isRepeating : 1;
23
};
10
class
KeyPressedEvent
final :
public
KeyEvent
{
…
};
24
25
inline
KeyPressedEvent::KeyPressedEvent
(
const
EKeyCode
key)
26
:
KeyPressedEvent
(key, false)
27
{}
25
inline
KeyPressedEvent::KeyPressedEvent
(
const
EKeyCode
key) {
…
}
28
29
inline
KeyPressedEvent::KeyPressedEvent
(
const
EKeyCode
key,
const
bool
isRepeating)
30
:
KeyEvent
(key)
31
, m_isRepeating(isRepeating)
32
{}
29
inline
KeyPressedEvent::KeyPressedEvent
(
const
EKeyCode
key,
const
bool
isRepeating) {
…
}
33
34
//inline EEventType KeyPressedEvent::getDynamicType() const
35
//{
36
// return EEventType::KeyDown;
37
//}
38
39
//inline std::string KeyPressedEvent::toString() const
40
//{
41
// return "Key Down Event";
42
//}
43
44
inline
bool
KeyPressedEvent::isRepeating
()
const
45
{
46
return
m_isRepeating;
47
}
44
inline
bool
KeyPressedEvent::isRepeating
()
const
{
…
}
48
49
}
// end namespace ph::editor
KeyEvent.h
ph::editor::KeyEvent
Definition
KeyEvent.h:13
ph::editor::KeyPressedEvent
Definition
KeyPressedEvent.h:11
ph::editor::KeyPressedEvent::isRepeating
bool isRepeating() const
Definition
KeyPressedEvent.h:44
ph::editor::KeyPressedEvent::KeyPressedEvent
KeyPressedEvent(EKeyCode key)
Definition
KeyPressedEvent.h:25
ph::editor
Definition
ph_editor.h:10
ph::editor::EKeyCode
EKeyCode
Definition
EKeyCode.h:9
Source
EditorCore
Event
KeyPressedEvent.h
Generated by
1.11.0