diff --git a/include/SFML/Window/Keyboard.hpp b/include/SFML/Window/Keyboard.hpp index b3186e93d..720aed9ac 100644 --- a/include/SFML/Window/Keyboard.hpp +++ b/include/SFML/Window/Keyboard.hpp @@ -133,6 +133,12 @@ public: Numpad7, ///< The numpad 7 key Numpad8, ///< The numpad 8 key Numpad9, ///< The numpad 9 key + NumpadReturn, ///< The numpad Return key. + NumpadComma, ///< The numpad Comma key. + NumLock, ///< The Numlock key. + CapsLock, ///< The Caps Lock key. + ScrollLock, ///< The Scroll Lock key. + PrintScreen, ///< The Print Screen key. F1, ///< The F1 key F2, ///< The F2 key F3, ///< The F3 key diff --git a/src/SFML/Window/Unix/WindowImplX11.cpp b/src/SFML/Window/Unix/WindowImplX11.cpp index 479e1e2bc..c641163be 100644 --- a/src/SFML/Window/Unix/WindowImplX11.cpp +++ b/src/SFML/Window/Unix/WindowImplX11.cpp @@ -267,7 +267,7 @@ namespace case XK_grave: return sf::Keyboard::Tilde; case XK_space: return sf::Keyboard::Space; case XK_Return: return sf::Keyboard::Return; - case XK_KP_Enter: return sf::Keyboard::Return; + case XK_KP_Enter: return sf::Keyboard::NumpadReturn; case XK_BackSpace: return sf::Keyboard::BackSpace; case XK_Tab: return sf::Keyboard::Tab; case XK_Prior: return sf::Keyboard::PageUp; @@ -346,6 +346,11 @@ namespace case XK_7: return sf::Keyboard::Num7; case XK_8: return sf::Keyboard::Num8; case XK_9: return sf::Keyboard::Num9; + case XK_KP_Separator: return sf::Keyboard::NumpadComma; + case XK_Num_Lock: return sf::Keyboard::NumLock; + case XK_Caps_Lock: return sf::Keyboard::CapsLock; + case XK_Scroll_Lock: return sf::Keyboard::ScrollLock; + case XK_Print: return sf::Keyboard::PrintScreen; } return sf::Keyboard::Unknown;