Added support for the ALT key on Windows platforms

pull/256/head
DoodlingTurtle 4 years ago
parent 5764bbab19
commit 1a29e074b6
  1. 3
      olcPixelGameEngine.h

@ -573,7 +573,7 @@ namespace olc
NP_MUL, NP_DIV, NP_ADD, NP_SUB, NP_DECIMAL, PERIOD,
EQUALS, COMMA, MINUS,
OEM_1, OEM_2, OEM_3, OEM_4, OEM_5, OEM_6, OEM_7, OEM_8,
CAPS_LOCK, ENUM_END
CAPS_LOCK, ENUM_END, ALT
};
namespace Mouse
@ -4439,6 +4439,7 @@ namespace olc
mapKeys[VK_OEM_MINUS] = Key::MINUS; // the minus key on any keyboard
mapKeys[VK_OEM_PERIOD] = Key::PERIOD; // the period key on any keyboard
mapKeys[VK_CAPITAL] = Key::CAPS_LOCK;
mapKeys[VK_MENU] = Key::ALT;
return olc::OK;
}

Loading…
Cancel
Save