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)