Photon Editor Library
2.0.0-beta
A physically based renderer.
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
};
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