![]() |
Raven Engine v0.1
|
Provides static methods to query keyboard and mouse state. More...
#include <Input.h>
Static Public Member Functions | |
| static bool | IsKeyPressed (KeyCode key) |
| Checks if a specific key is currently pressed. | |
| static bool | IsMouseButtonPressed (MouseCode button) |
| Checks if a specific mouse button is currently pressed. | |
| static std::pair< float, float > | GetMousePosition () |
| Gets the current mouse position. | |
| static float | GetMouseX () |
| Gets the current X position of the mouse. | |
| static float | GetMouseY () |
| Gets the current Y position of the mouse. | |
Provides static methods to query keyboard and mouse state.
This class serves as the abstraction layer over the platform-specific input backend. Direct polling only; does not handle input buffering or events.
|
static |
Gets the current mouse position.
|
static |
Gets the current X position of the mouse.
|
static |
Gets the current Y position of the mouse.
|
static |
Checks if a specific key is currently pressed.
| key | The keycode to query. |
|
static |
Checks if a specific mouse button is currently pressed.
| button | The mouse button code to query. |