mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Tweak formatting
This commit is contained in:
parent
5ce82f3ef4
commit
17a8e9e2c2
@ -647,12 +647,23 @@ String KeyboardImpl::getDescription(Keyboard::Scancode code)
|
||||
|
||||
// these scancodes actually correspond to keys with input
|
||||
// but we want to return their description, not their behaviour
|
||||
if (code == Keyboard::Scan::Enter || code == Keyboard::Scan::Escape || code == Keyboard::Scan::Backspace ||
|
||||
code == Keyboard::Scan::Tab || code == Keyboard::Scan::Space || code == Keyboard::Scan::ScrollLock ||
|
||||
code == Keyboard::Scan::Pause || code == Keyboard::Scan::Delete || code == Keyboard::Scan::NumpadDivide ||
|
||||
code == Keyboard::Scan::NumpadMultiply || code == Keyboard::Scan::NumpadMinus ||
|
||||
code == Keyboard::Scan::NumpadPlus || code == Keyboard::Scan::NumpadEqual ||
|
||||
code == Keyboard::Scan::NumpadEnter || code == Keyboard::Scan::NumpadDecimal)
|
||||
// clang-format off
|
||||
if (code == Keyboard::Scan::Enter ||
|
||||
code == Keyboard::Scan::Escape ||
|
||||
code == Keyboard::Scan::Backspace ||
|
||||
code == Keyboard::Scan::Tab ||
|
||||
code == Keyboard::Scan::Space ||
|
||||
code == Keyboard::Scan::ScrollLock ||
|
||||
code == Keyboard::Scan::Pause ||
|
||||
code == Keyboard::Scan::Delete ||
|
||||
code == Keyboard::Scan::NumpadDivide ||
|
||||
code == Keyboard::Scan::NumpadMultiply ||
|
||||
code == Keyboard::Scan::NumpadMinus ||
|
||||
code == Keyboard::Scan::NumpadPlus ||
|
||||
code == Keyboard::Scan::NumpadEqual ||
|
||||
code == Keyboard::Scan::NumpadEnter ||
|
||||
code == Keyboard::Scan::NumpadDecimal)
|
||||
// clang-format on
|
||||
{
|
||||
checkInput = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user