A simple static class that allows to query for physical keyboard or mose inputs.
More...
#include <Input.hpp>
|
| static bool | IsKeyDown (const CoriKeycode keycode) |
| | Checks if a specific keyboard key is down.
|
| static bool | IsMouseKeyDown (const CoriMouseKeycode keycode) |
| | Checks if a specific mouse key is down.
|
| static int32_t | GetMouseX () |
| | Retrieves the current mouse X position on screen.
|
| static int32_t | GetMouseY () |
| | Retrieves the current mouse Y position on screen.
|
| static glm::ivec2 | GetMousePosition () |
| | Retrieves the current mouse position on screen.
|
A simple static class that allows to query for physical keyboard or mose inputs.
Definition at line 10 of file Input.hpp.
◆ GetMousePosition()
| glm::ivec2 Cori::Core::Input::GetMousePosition |
( |
| ) |
|
|
static |
Retrieves the current mouse position on screen.
- Returns
- Mouse position in screen coordinates.
Definition at line 27 of file Input.cpp.
◆ GetMouseX()
| int32_t Cori::Core::Input::GetMouseX |
( |
| ) |
|
|
static |
Retrieves the current mouse X position on screen.
- Returns
- Mouse position on X in screen coordinates.
Definition at line 15 of file Input.cpp.
◆ GetMouseY()
| int32_t Cori::Core::Input::GetMouseY |
( |
| ) |
|
|
static |
Retrieves the current mouse Y position on screen.
- Returns
- Mouse position on Y in screen coordinates.
Definition at line 21 of file Input.cpp.
◆ IsKeyDown()
| bool Cori::Core::Input::IsKeyDown |
( |
const CoriKeycode | keycode | ) |
|
|
static |
Checks if a specific keyboard key is down.
- Parameters
-
- Returns
- True if down, false otherwise.
Definition at line 5 of file Input.cpp.
◆ IsMouseKeyDown()
Checks if a specific mouse key is down.
- Parameters
-
| keycode | Said mouse key key keycode. |
- Returns
- True if down, false otherwise.
Definition at line 10 of file Input.cpp.
The documentation for this class was generated from the following files: