Browse Source

Fix ALT key on linux

Clément Wolf 3 weeks ago
parent
commit
6458ee42ca
2 changed files with 3 additions and 0 deletions
  1. 1 0
      src/App/Osu/OsuChangelog.cpp
  2. 2 0
      src/Engine/Input/Keyboard.cpp

+ 1 - 0
src/App/Osu/OsuChangelog.cpp

@@ -48,6 +48,7 @@ OsuChangelog::OsuChangelog(Osu *osu) : OsuScreenBackable(osu) {
     latest.changes.push_back("- Fixed FPoSu mod not being included in score data");
     latest.changes.push_back("- Fixed replay playback starting too fast");
     latest.changes.push_back("- Fixed restarting SoundEngine not kicking the player out of play mode");
+    latest.changes.push_back("- Fixed ALT key not working on linux");
     latest.changes.push_back("- Disabled score submission when mods are toggled mid-game");
     changelogs.push_back(latest);
 

+ 2 - 0
src/Engine/Input/Keyboard.cpp

@@ -49,6 +49,7 @@ void Keyboard::onKeyDown(KEYCODE keyCode) {
         case KEY_CONTROL:
             m_bControlDown = true;
             break;
+        case 65511:  // linux
         case KEY_ALT:
             m_bAltDown = true;
             break;
@@ -73,6 +74,7 @@ void Keyboard::onKeyUp(KEYCODE keyCode) {
         case KEY_CONTROL:
             m_bControlDown = false;
             break;
+        case 65511:  // linux
         case KEY_ALT:
             m_bAltDown = false;
             break;