From 1d0d1c015b9dd79038bd4fb02d73cd8397546005 Mon Sep 17 00:00:00 2001 From: jerrrrycho Date: Sat, 4 Jul 2026 06:01:22 +0200 Subject: [PATCH] reformat: remove redundant 'inline' specifier --- input/keyboardinput.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/input/keyboardinput.cpp b/input/keyboardinput.cpp index 498f2783..ecb7fca3 100644 --- a/input/keyboardinput.cpp +++ b/input/keyboardinput.cpp @@ -265,20 +265,20 @@ keyboard_input::key( int const Key, int const Action ) { if( Key == GLFW_KEY_LEFT_SHIFT || Key == GLFW_KEY_RIGHT_SHIFT) { // update internal state, but don't bother passing these input::key_shift = - Action == GLFW_RELEASE ? false : true; + Action != GLFW_RELEASE; modifier = true; // whenever shift key is used it may affect currently pressed movement keys, so check and update these } if( Key == GLFW_KEY_LEFT_CONTROL || Key == GLFW_KEY_RIGHT_CONTROL) { // update internal state, but don't bother passing these input::key_ctrl = - Action == GLFW_RELEASE ? false : true; + Action != GLFW_RELEASE; modifier = true; } if( Key == GLFW_KEY_LEFT_ALT || Key == GLFW_KEY_RIGHT_ALT) { // update internal state, but don't bother passing these input::key_alt = - Action == GLFW_RELEASE ? false : true; + Action != GLFW_RELEASE; } if( Key == -1 ) { return false; }