mirror of
https://github.com/zhenyan121/Cubed.git
synced 2026-06-18 00:27:02 +08:00
39 lines
501 B
C++
39 lines
501 B
C++
#pragma once
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
namespace Cubed {
|
|
|
|
|
|
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 KeyState {
|
|
bool r = false;
|
|
};
|
|
|
|
struct InputState {
|
|
MoveState move_state;
|
|
MouseState mouse_state;
|
|
KeyState key_state;
|
|
};
|
|
|
|
namespace Input {
|
|
InputState& get_input_state();
|
|
|
|
|
|
}
|
|
|
|
|
|
} |