◆ GetMouseDelta()
glm::vec2 Engine::Input::GetMouseDelta |
( |
| ) |
|
|
static |
Capture and reset the last total mouse delta movement.
- Returns
- the mouse movement delta.
◆ GetMousePos()
glm::vec2 Engine::Input::GetMousePos |
( |
| ) |
|
|
static |
Get the mouse position
- Returns
- the mouse position
◆ GetMouseX()
float Engine::Input::GetMouseX |
( |
| ) |
|
|
static |
Get the mouse x position
- Returns
- the mouse x position
◆ GetMouseY()
float Engine::Input::GetMouseY |
( |
| ) |
|
|
static |
Get the mouse y position
- Returns
- the mouse y position
◆ IsKeyPressed()
bool Engine::Input::IsKeyPressed |
( |
KeyCode |
key | ) |
|
|
static |
Query if a key is pressed
- Parameters
-
key | the keycode of the pressed key |
- Returns
- if the key is pressed
◆ IsMouseLocked()
bool Engine::Input::IsMouseLocked |
( |
| ) |
|
|
static |
Retrieve the current mouse lock state.
- Returns
◆ IsMousePressed()
bool Engine::Input::IsMousePressed |
( |
MouseCode |
button | ) |
|
|
static |
Query if a mouse button is pressed
- Parameters
-
button | the buttoncode of the pressed button |
- Returns
- if the button is pressed
◆ SetMouseLock()
void Engine::Input::SetMouseLock |
( |
bool |
lock | ) |
|
|
static |
Set the mouse lock state.
- Parameters
-
◆ Update()
void Engine::Input::Update |
( |
const Scene & |
s | ) |
|
|
static |
Update Input related scene Components.
- Parameters
-
◆ UpdateMousePos()
void Engine::Input::UpdateMousePos |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
static |
Update the mouse's position on the screen.
- Parameters
-
◆ UpdateRelMousePos()
void Engine::Input::UpdateRelMousePos |
( |
float |
x, |
|
|
float |
y |
|
) |
| |
|
static |
Update the relative mouse motion on the screen.
- Parameters
-
The documentation for this class was generated from the following files: