mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-04-10 06:14:07 +08:00
28 lines
411 B
C++
28 lines
411 B
C++
#pragma once
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
struct MoveState {
|
|
bool forward = false;
|
|
bool back = false;
|
|
bool left = false;
|
|
bool right = false;
|
|
bool down = false;
|
|
bool up = false;
|
|
};
|
|
|
|
struct MouseState {
|
|
bool left = false;
|
|
bool right = false;
|
|
};
|
|
|
|
struct InputState {
|
|
MoveState move_state;
|
|
MouseState mouse_state;
|
|
};
|
|
|
|
namespace Input {
|
|
InputState& get_input_state();
|
|
|
|
|
|
} |