QuasarEngine
Cross-platform 3D engine and editor
Loading...
Searching...
No Matches
Input.h File Reference

Functions that read the current state of the keyboard and the mouse. More...

#include <quasar/core/KeyCodes.h>
#include <quasar/core/MouseCodes.h>
#include <glm/vec2.hpp>

Go to the source code of this file.

Namespaces

namespace  Quasar
 Contains all the engine code.
namespace  Quasar::Input
 Functions that read the current state of the keyboard and the mouse, as an alternative to events.

Functions

bool Quasar::Input::IsKeyPressed (Key key)
 Returns true if the key is held down.
bool Quasar::Input::IsMouseButtonPressed (MouseButton button)
 Returns true if the mouse button is held down.
glm::vec2 Quasar::Input::GetMousePosition ()
 Returns the position of the cursor, in screen coordinates, from the top-left corner of the drawing area.

Detailed Description

Functions that read the current state of the keyboard and the mouse.

Author
Kurogenshi
Date
2026-10-25