Skip to content

Commit

Permalink
Added more keycodes to window/input
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Nov 9, 2023
1 parent 5bd27c3 commit 5c2ff83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/window/input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ int keycode::LEFT_ALT = GLFW_KEY_LEFT_ALT;
int keycode::RIGHT_SHIFT = GLFW_KEY_RIGHT_SHIFT;
int keycode::RIGHT_CONTROL = GLFW_KEY_RIGHT_CONTROL;
int keycode::RIGHT_ALT = GLFW_KEY_RIGHT_ALT;
int keycode::ESCAPE = GLFW_KEY_ESCAPE;
int keycode::CAPS_LOCK = GLFW_KEY_CAPS_LOCK;
int keycode::LEFT = GLFW_KEY_LEFT;
int keycode::RIGHT = GLFW_KEY_RIGHT;
int keycode::DOWN = GLFW_KEY_DOWN;
int keycode::UP = GLFW_KEY_UP;
int keycode::F1 = GLFW_KEY_F1;
int keycode::F2 = GLFW_KEY_F2;
int keycode::F3 = GLFW_KEY_F3;
Expand Down
6 changes: 6 additions & 0 deletions src/window/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ namespace keycode {
extern int RIGHT_CONTROL;
extern int RIGHT_SHIFT;
extern int RIGHT_ALT;
extern int ESCAPE;
extern int CAPS_LOCK;
extern int LEFT;
extern int RIGHT;
extern int DOWN;
extern int UP;
extern int F1;
extern int F2;
extern int F3;
Expand Down

0 comments on commit 5c2ff83

Please sign in to comment.