Loading [MathJax]/jax/output/HTML-CSS/config.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
▼
Platform
►
GlfwPlatform
Platform.cpp
►
Platform.h
PlatformDisplay.cpp
►
PlatformDisplay.h
PlatformInput.cpp
►
PlatformInput.h
►
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
PlatformInput.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
EditorCore/EKeyCode.h
"
4
#include "
EditorCore/EMouseCode.h
"
5
6
#include <Utility/INoCopyAndMove.h>
7
#include <Common/primitive_type.h>
8
#include <Math/TVector2.h>
9
10
namespace
ph::editor
11
{
12
17
class
PlatformInput
:
private
INoCopyAndMove
18
{
19
friend
class
Platform
;
20
21
protected
:
22
PlatformInput
();
23
virtual
~PlatformInput
();
24
25
public
:
29
virtual
void
poll
(float64 deltaS) = 0;
30
37
virtual
void
virtualizeCursor
()
const
= 0;
38
virtual
void
unvirtualizeCursor
()
const
= 0;
40
46
virtual
bool
isKeyDown
(
EKeyCode
keyCode)
const
= 0;
47
virtual
bool
isMouseButtonDown
(
EMouseCode
mouseCode)
const
= 0;
49
55
virtual
bool
isKeyUp
(
EKeyCode
keyCode)
const
= 0;
56
virtual
bool
isMouseButtonUp
(
EMouseCode
mouseCode)
const
= 0;
58
65
virtual
bool
isKeyHold
(
EKeyCode
keyCode)
const
= 0;
66
virtual
bool
isMouseButtonHold
(
EMouseCode
mouseCode)
const
= 0;
68
74
virtual
math::Vector2D
getCursorPositionPx
()
const
= 0;
75
80
virtual
math::Vector2D
getCursorMovementDeltaPx
()
const
= 0;
81
};
17
class
PlatformInput
:
private
INoCopyAndMove {
…
};
82
83
}
// end namespace ph::editor
EKeyCode.h
EMouseCode.h
ph::editor::Platform
Platform abstraction. An abstraction layer for the underlying hardware the application is running on....
Definition
Platform.h:27
ph::editor::PlatformInput
Platform input abstraction.
Definition
PlatformInput.h:18
ph::editor::PlatformInput::isKeyUp
virtual bool isKeyUp(EKeyCode keyCode) const =0
ph::editor::PlatformInput::isKeyHold
virtual bool isKeyHold(EKeyCode keyCode) const =0
ph::editor::PlatformInput::isKeyDown
virtual bool isKeyDown(EKeyCode keyCode) const =0
ph::editor::PlatformInput::virtualizeCursor
virtual void virtualizeCursor() const =0
ph::editor::PlatformInput::getCursorMovementDeltaPx
virtual math::Vector2D getCursorMovementDeltaPx() const =0
ph::editor::PlatformInput::PlatformInput
PlatformInput()
ph::editor::PlatformInput::~PlatformInput
virtual ~PlatformInput()
ph::editor::PlatformInput::getCursorPositionPx
virtual math::Vector2D getCursorPositionPx() const =0
ph::editor::PlatformInput::isMouseButtonHold
virtual bool isMouseButtonHold(EMouseCode mouseCode) const =0
ph::editor::PlatformInput::poll
virtual void poll(float64 deltaS)=0
ph::editor::PlatformInput::isMouseButtonUp
virtual bool isMouseButtonUp(EMouseCode mouseCode) const =0
ph::editor::PlatformInput::unvirtualizeCursor
virtual void unvirtualizeCursor() const =0
ph::editor::PlatformInput::isMouseButtonDown
virtual bool isMouseButtonDown(EMouseCode mouseCode) const =0
ph::editor
Definition
ph_editor.h:10
ph::editor::EMouseCode
EMouseCode
Definition
EMouseCode.h:9
ph::editor::EKeyCode
EKeyCode
Definition
EKeyCode.h:9
Source
Platform
PlatformInput.h
Generated by
1.11.0