100 absMousePos(0.0f, 0.0f),
101 normMousePos(0.0f, 0.0f),
102 keyCode(
Input::Key::InvalidKey),
104 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
116 absMousePos(0.0f, 0.0f),
117 normMousePos(0.0f, 0.0f),
118 keyCode(
Input::Key::InvalidKey),
120 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
133 absMousePos(0.0f, 0.0f),
134 normMousePos(0.0f, 0.0f),
135 keyCode(
Input::Key::InvalidKey),
137 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
150 normMousePos(normPos),
151 keyCode(
Input::Key::InvalidKey),
153 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
165 absMousePos(0.0f, 0.0f),
166 normMousePos(0.0f, 0.0f),
169 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
181 absMousePos(0.0f, 0.0f),
182 normMousePos(0.0f, 0.0f),
183 keyCode(
Input::Key::InvalidKey),
185 mouseButtonCode(
Input::MouseButton::InvalidMouseButton)
198 normMousePos(normPos),
199 keyCode(
Input::Key::InvalidKey),
A translated character code.
Display events are sent by the display device to registered display event handlers.
Definition displayevent.h:24
Code code
Definition displayevent.h:84
Math::vec2 normMousePos
Definition displayevent.h:87
Code GetEventCode() const
get event code
Definition displayevent.h:210
Input::Key::Code GetKey() const
get key code
Definition displayevent.h:246
DisplayEvent()
default constructor
Definition displayevent.h:97
CoreGraphics::WindowId windowId
Definition displayevent.h:85
CoreGraphics::WindowId GetWindowId() const
get window id
Definition displayevent.h:219
Input::Char charCode
Definition displayevent.h:89
Input::MouseButton::Code GetMouseButton() const
get mouse button code
Definition displayevent.h:264
const Math::vec2 & GetAbsMousePos() const
get absolute mouse pos (in pixels)
Definition displayevent.h:228
Input::Char GetChar() const
get character code
Definition displayevent.h:255
Input::Key::Code keyCode
Definition displayevent.h:88
Math::vec2 absMousePos
Definition displayevent.h:86
const Math::vec2 & GetNormMousePos() const
get normalized mouse pos (from 0.0 to 1.0)
Definition displayevent.h:237
Code
event codes
Definition displayevent.h:28
@ Character
Definition displayevent.h:44
@ WindowMinimized
Definition displayevent.h:34
@ WindowClose
Definition displayevent.h:31
@ WindowReopen
Definition displayevent.h:32
@ WindowResized
Definition displayevent.h:37
@ MouseButtonDown
Definition displayevent.h:46
@ WindowOpen
Definition displayevent.h:30
@ MouseButtonUp
Definition displayevent.h:47
@ InvalidCode
Definition displayevent.h:29
@ KeyUp
Definition displayevent.h:43
@ MouseButtonDoubleClick
Definition displayevent.h:48
@ KeyDown
Definition displayevent.h:42
@ MouseWheelBackward
Definition displayevent.h:50
@ MouseWheelForward
Definition displayevent.h:49
@ SetFocus
Definition displayevent.h:40
@ ToggleFullscreenWindowed
Definition displayevent.h:36
@ SetCursor
Definition displayevent.h:38
@ CloseRequested
Definition displayevent.h:33
@ KillFocus
Definition displayevent.h:41
@ MouseMove
Definition displayevent.h:45
@ WindowRestored
Definition displayevent.h:35
@ Paint
Definition displayevent.h:39
Input::MouseButton::Code mouseButtonCode
Definition displayevent.h:90
Acceleration structures are used to enable ray tracing on the GPU by dividing the scene into a BVH.
Definition accelerationstructure.h:24
This simple Id pool implements a set of free and used consecutive integers.
Definition id.h:135
static constexpr Id32 InvalidId32
Definition id.h:143
A 2-component float vector class.
Definition vec2.h:21