From 62085402238cd57748b23225e885a2bede511562 Mon Sep 17 00:00:00 2001 From: Kenny <106347478+kennyhml@users.noreply.github.com> Date: Sat, 20 May 2023 21:55:31 +0200 Subject: [PATCH] added layout adjustment --- pydirectinput/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pydirectinput/__init__.py b/pydirectinput/__init__.py index 52ee3d5..6399715 100644 --- a/pydirectinput/__init__.py +++ b/pydirectinput/__init__.py @@ -168,8 +168,10 @@ 'right': MapVirtualKey(0x27, MAPVK_VK_TO_VSC), } -# C struct redefinitions +for c in range(32, 92): + KEYBOARD_MAPPING[chr(c).lower()] = MapVirtualKey(c, MAPVK_VK_TO_VSC) +# C struct redefinitions PUL = ctypes.POINTER(ctypes.c_ulong)