renderpip/include/components/input.hpp

22 lines
384 B
C++
Raw Normal View History

2026-04-02 03:41:50 -04:00
/**
* @file input.hpp
* @brief Input-related components
*/
#pragma once
struct PlayerControlled {
int player_id = 0;
};
struct InputState {
bool move_up = false;
bool move_down = false;
bool move_left = false;
bool move_right = false;
bool action_primary = false;
bool action_secondary = false;
float mouse_x = 0.0f;
float mouse_y = 0.0f;
};