From 5c2ff83e7d0c3cae9989af20200ceed0c341b770 Mon Sep 17 00:00:00 2001 From: MihailRis Date: Thu, 9 Nov 2023 23:50:13 +0300 Subject: [PATCH] Added more keycodes to window/input --- src/window/input.cpp | 6 ++++++ src/window/input.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/window/input.cpp b/src/window/input.cpp index f134998d9..1f5e50ec5 100644 --- a/src/window/input.cpp +++ b/src/window/input.cpp @@ -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; diff --git a/src/window/input.h b/src/window/input.h index 8b19e54d7..9cb9ce3ba 100644 --- a/src/window/input.h +++ b/src/window/input.h @@ -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;