Skip to content
Snippets Groups Projects
Commit 6060a7f9 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Added t tracking

parent 259c2c7b
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,7 @@ float InputState::mwheelmot_y = 0.f;
bool InputState::should_quit = false;
bool InputState::b_click = false;
bool InputState::s_click = false;
bool InputState::t_click = false;
bool InputState::g_click = false;
bool InputState::f1_click = false;
bool InputState::f2_click = false;
......@@ -32,6 +33,7 @@ void InputState::update(const unsigned width, const unsigned height) {
esc_click = false;
b_click = false;
s_click = false;
t_click = false;
g_click = false;
f1_click = false;
f2_click = false;
......@@ -150,6 +152,9 @@ void InputState::update(const unsigned width, const unsigned height) {
if (event.key.keysym.sym == SDLK_s) {
s_click = true;
}
if (event.key.keysym.sym == SDLK_t) {
t_click = true;
}
if (event.key.keysym.sym == SDLK_F1) {
f1_click = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment