first commit
This commit is contained in:
commit
5c7d1905a9
25 changed files with 4034 additions and 0 deletions
21
include/components/input.hpp
Normal file
21
include/components/input.hpp
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/**
|
||||
* @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;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue