galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
Input.hpp File Reference
#include <glm/vec2.hpp>
#include "galaxy/input/Keys.hpp"
#include "galaxy/input/MouseButton.hpp"
Include dependency graph for Input.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Application.hpp galaxy.
namespace  galaxy::input

Functions

bool galaxy::input::is_key_mod_down (const KeyMods modifier) noexcept
 See if a key mod is being held down.
bool galaxy::input::is_key_down (const Keys key) noexcept
 See if a key is being held down.
bool galaxy::input::is_mouse_down (const MouseButton btn) noexcept
 Check if a mouse button was pressed.
glm::vec2 galaxy::input::get_cursor_pos () noexcept
 Get current cursor position.