From 1a29e074b67cad2e457150f793645befa8ce5f04 Mon Sep 17 00:00:00 2001 From: DoodlingTurtle <52770682+DoodlingTurtle@users.noreply.github.com> Date: Wed, 1 Sep 2021 08:38:11 +0200 Subject: [PATCH] Added support for the ALT key on Windows platforms --- olcPixelGameEngine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 48a9be5..03e5ba9 100644 --- a/olcPixelGameEngine.h +++ b/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; }