mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 18:39:18 +02:00
reformat: remove redundant 'inline' specifier
This commit is contained in:
@@ -265,20 +265,20 @@ keyboard_input::key( int const Key, int const Action ) {
|
|||||||
if( Key == GLFW_KEY_LEFT_SHIFT || Key == GLFW_KEY_RIGHT_SHIFT) {
|
if( Key == GLFW_KEY_LEFT_SHIFT || Key == GLFW_KEY_RIGHT_SHIFT) {
|
||||||
// update internal state, but don't bother passing these
|
// update internal state, but don't bother passing these
|
||||||
input::key_shift =
|
input::key_shift =
|
||||||
Action == GLFW_RELEASE ? false : true;
|
Action != GLFW_RELEASE;
|
||||||
modifier = true;
|
modifier = true;
|
||||||
// whenever shift key is used it may affect currently pressed movement keys, so check and update these
|
// 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) {
|
if( Key == GLFW_KEY_LEFT_CONTROL || Key == GLFW_KEY_RIGHT_CONTROL) {
|
||||||
// update internal state, but don't bother passing these
|
// update internal state, but don't bother passing these
|
||||||
input::key_ctrl =
|
input::key_ctrl =
|
||||||
Action == GLFW_RELEASE ? false : true;
|
Action != GLFW_RELEASE;
|
||||||
modifier = true;
|
modifier = true;
|
||||||
}
|
}
|
||||||
if( Key == GLFW_KEY_LEFT_ALT || Key == GLFW_KEY_RIGHT_ALT) {
|
if( Key == GLFW_KEY_LEFT_ALT || Key == GLFW_KEY_RIGHT_ALT) {
|
||||||
// update internal state, but don't bother passing these
|
// update internal state, but don't bother passing these
|
||||||
input::key_alt =
|
input::key_alt =
|
||||||
Action == GLFW_RELEASE ? false : true;
|
Action != GLFW_RELEASE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( Key == -1 ) { return false; }
|
if( Key == -1 ) { return false; }
|
||||||
|
|||||||
Reference in New Issue
Block a user