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.cpp File Reference
#include <SDL3/SDL_keyboard.h>
#include "Input.hpp"
+ Include dependency graph for Input.cpp:

Go to the source code of this file.

Namespaces

namespace  galaxy
 Animated.cpp 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.