Scancode renaming leftover
This commit is contained in:
parent
5dbe85bfec
commit
b354f7f7ee
@ -58,7 +58,7 @@ Keyboard::Key InputImpl::localize(Keyboard::Scancode /* code */)
|
|||||||
Keyboard::Scancode InputImpl::delocalize(Keyboard::Key /* key */)
|
Keyboard::Scancode InputImpl::delocalize(Keyboard::Key /* key */)
|
||||||
{
|
{
|
||||||
// Not applicable
|
// Not applicable
|
||||||
return Keyboard::ScanUnknown;
|
return Keyboard::Scan::Unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
String InputImpl::getDescription(Keyboard::Scancode /* code */)
|
String InputImpl::getDescription(Keyboard::Scancode /* code */)
|
||||||
|
@ -500,7 +500,7 @@ void ensureMapping()
|
|||||||
{
|
{
|
||||||
scancode = translateKeyCode(display, static_cast<KeyCode>(keycode));
|
scancode = translateKeyCode(display, static_cast<KeyCode>(keycode));
|
||||||
|
|
||||||
if (scancode != sf::Keyboard::ScanUnknown && scancodeToKeycode[scancode] == NullKeyCode)
|
if (scancode != sf::Keyboard::Scan::Unknown && scancodeToKeycode[scancode] == NullKeyCode)
|
||||||
scancodeToKeycode[scancode] = static_cast<KeyCode>(keycode);
|
scancodeToKeycode[scancode] = static_cast<KeyCode>(keycode);
|
||||||
|
|
||||||
keycodeToScancode[keycode] = scancode;
|
keycodeToScancode[keycode] = scancode;
|
||||||
@ -554,7 +554,7 @@ KeyCode keyToKeyCode(sf::Keyboard::Key key)
|
|||||||
|
|
||||||
// Fallback for when XKeysymToKeycode cannot tell the KeyCode for XK_Alt_R
|
// Fallback for when XKeysymToKeycode cannot tell the KeyCode for XK_Alt_R
|
||||||
if (key == sf::Keyboard::RAlt)
|
if (key == sf::Keyboard::RAlt)
|
||||||
return scancodeToKeycode[sf::Keyboard::ScanRAlt];
|
return scancodeToKeycode[sf::Keyboard::Scan::RAlt];
|
||||||
|
|
||||||
return NullKeyCode;
|
return NullKeyCode;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user