QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Input.h
Go to the documentation of this file.
1#pragma once
2
7
10
11#include <glm/vec2.hpp>
12
22{
26 bool IsKeyPressed(Key key);
27
30
35 glm::vec2 GetMousePosition();
36}
Codes of the keyboard keys, independent from GLFW.
Codes of the mouse buttons, independent from GLFW.
Functions that read the current state of the keyboard and the mouse, as an alternative to events.
Definition Input.h:22
glm::vec2 GetMousePosition()
Returns the position of the cursor, in screen coordinates, from the top-left corner of the drawing ar...
bool IsKeyPressed(Key key)
Returns true if the key is held down.
bool IsMouseButtonPressed(MouseButton button)
Returns true if the mouse button is held down.
Key
Physical key of the keyboard.
Definition KeyCodes.h:22
MouseButton
Button of the mouse.
Definition MouseCodes.h:17