7 enum class WindowEventType
27 GamePadButtonDPadDown,
28 GamePadButtonDPadLeft,
29 GamePadButtonDPadRight,
32 GamePadButtonLeftShoulder,
33 GamePadButtonRightShoulder,
34 GamePadLeftThumbState,
35 GamePadRightThumbState,
41 A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z,
42 Left, Right, Up, Down, Space, Escape, Enter
46 enum WindowCreateFlags :
unsigned
59 WindowEventType
type = WindowEventType::None;
82 void Create(
int width,
int height, WindowCreateFlags flags );
86 void GetSize(
int& outWidth,
int& outHeight );
bool PollEvent(WindowEvent &outEvent)
Definition: AudioClip.hpp:4
WindowEventType type
Event type.
Definition: Window.hpp:59
KeyCode keyCode
Key code.
Definition: Window.hpp:61
float gamePadThumbX
Gamepad's thumb x in range [-1, 1]. Event type indicates left or right thumb.
Definition: Window.hpp:67
int mouseX
X coordinate in window. Origin: left.
Definition: Window.hpp:63
void SwapBuffers()
Displays the contents of the screen.
void GetSize(int &outWidth, int &outHeight)
void Create(int width, int height, WindowCreateFlags flags)
void SetTitle(const char *title)
void PumpEvents()
Reads events from windowing system to be used in PollEvent depending on platform. ...
int mouseY
Y coordinate in window. Origin: bottom.
Definition: Window.hpp:65
float gamePadThumbY
Gamepad's thumb y in range [-1, 1]. Event type indicates left or right thumb.
Definition: Window.hpp:69
Window event is a key press, close event, mouse click etc.
Definition: Window.hpp:56