Foray Library
rapid prototyping framework for crossplatform development of vulkan hardware ray tracing applications
|
Event type describing a directional input event. More...
#include <foray_event.hpp>
Public Member Functions | |
EventInputDirectional ()=default | |
EventInputDirectional (Window *const source, const uint32_t timestamp, InputDevice *device, const InputDirectional *inputsource, int32_t offsetX, int32_t offsetY) | |
![]() | |
EventInput ()=default | |
EventInput (Window *const source, const uint32_t timestamp, const EType type, InputDevice *const device) | |
![]() | |
Event ()=default | |
Event (Window *const source, const uint32_t timestamp, const EType type) | |
Event (Window *const source, const uint32_t timestamp, const int8_t customtype) | |
virtual | ~Event () |
Public Attributes | |
const InputDirectional * | SourceInput = nullptr |
The directional input that was triggered. | |
int32_t | OffsetX = 0 |
The offset in X direction. | |
int32_t | OffsetY = 0 |
The offset in Y direction. | |
![]() | |
InputDevice * | SourceDevice = nullptr |
Input Device that the input was read from. | |
![]() | |
Window * | Source = nullptr |
Source window that recorded the event, if applicable. | |
uint32_t | Timestamp = 0 |
Timestamp when the action was recorded. | |
EType | Type = EType::Undefined |
Event type. | |
int16_t | CustomType = 0 |
For custom event type overloads, this value may be set. | |
SDL_Event | RawSdlEventData = {} |
Raw SDL_Event data this event was derived from. | |
Additional Inherited Members | |
![]() | |
enum class | EType : int16_t { Undefined = -1 , InputAnalogue , InputBinary , InputDirectional , InputMouseMoved , WindowResized , WindowFocusChanged , WindowCloseRequested , WindowItemDropped , InputDeviceAvailability , Custom , ENUM_MAX } |
Event type enum, allows handling events in switch structures. More... | |
![]() | |
virtual void | __makeMePolymorphic () |
Event type describing a directional input event.
|
inlinedefault |
|
inline |
int32_t foray::osi::EventInputDirectional::OffsetX = 0 |
The offset in X direction.
int32_t foray::osi::EventInputDirectional::OffsetY = 0 |
The offset in Y direction.
const InputDirectional* foray::osi::EventInputDirectional::SourceInput = nullptr |
The directional input that was triggered.