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;
61 KeyCode keyCode = KeyCode::A;
67 float gamePadThumbX = 0;
69 float gamePadThumbY = 0;
82 void Create(
int width,
int height, WindowCreateFlags flags );
86 void GetSize(
int& outWidth,
int& outHeight );
bool PollEvent(WindowEvent &outEvent)
Definition: AudioClip.hpp:4
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. ...
Window event is a key press, close event, mouse click etc.
Definition: Window.hpp:56