yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::platform::WindowEvent Struct Reference

Platform-agnostic window event data. More...

#include <iwindow.h>

Public Attributes

WindowEventType type = WindowEventType::None
 
int window_width = 0
 
int window_height = 0
 
int key_code = 0
 
int scan_code = 0
 
bool key_shift = false
 
bool key_ctrl = false
 
bool key_alt = false
 
bool key_super = false
 
float mouse_x = 0.0f
 
float mouse_y = 0.0f
 
int mouse_button = 0
 
float wheel_x = 0.0f
 
float wheel_y = 0.0f
 
std::string dropped_file
 
bool has_native_event = false
 
SDL_Event native_event {}
 

Detailed Description

Platform-agnostic window event data.

Definition at line 63 of file iwindow.h.

Member Data Documentation

◆ type

WindowEventType yaze::platform::WindowEvent::type = WindowEventType::None

◆ window_width

int yaze::platform::WindowEvent::window_width = 0

Definition at line 67 of file iwindow.h.

◆ window_height

int yaze::platform::WindowEvent::window_height = 0

Definition at line 68 of file iwindow.h.

◆ key_code

int yaze::platform::WindowEvent::key_code = 0

Definition at line 71 of file iwindow.h.

◆ scan_code

int yaze::platform::WindowEvent::scan_code = 0

Definition at line 72 of file iwindow.h.

◆ key_shift

bool yaze::platform::WindowEvent::key_shift = false

Definition at line 73 of file iwindow.h.

◆ key_ctrl

bool yaze::platform::WindowEvent::key_ctrl = false

Definition at line 74 of file iwindow.h.

◆ key_alt

bool yaze::platform::WindowEvent::key_alt = false

Definition at line 75 of file iwindow.h.

◆ key_super

bool yaze::platform::WindowEvent::key_super = false

Definition at line 76 of file iwindow.h.

◆ mouse_x

float yaze::platform::WindowEvent::mouse_x = 0.0f

Definition at line 79 of file iwindow.h.

◆ mouse_y

float yaze::platform::WindowEvent::mouse_y = 0.0f

Definition at line 80 of file iwindow.h.

◆ mouse_button

int yaze::platform::WindowEvent::mouse_button = 0

Definition at line 81 of file iwindow.h.

◆ wheel_x

float yaze::platform::WindowEvent::wheel_x = 0.0f

Definition at line 82 of file iwindow.h.

◆ wheel_y

float yaze::platform::WindowEvent::wheel_y = 0.0f

Definition at line 83 of file iwindow.h.

◆ dropped_file

std::string yaze::platform::WindowEvent::dropped_file

Definition at line 86 of file iwindow.h.

Referenced by main().

◆ has_native_event

bool yaze::platform::WindowEvent::has_native_event = false

◆ native_event

SDL_Event yaze::platform::WindowEvent::native_event {}

The documentation for this struct was generated from the following file: