mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
demos: Map the Win32 A-Z keys to a-z.
Matching what we produce on XCB and macOS.
This commit is contained in:
Notes:
Henri Verbeet
2025-06-11 20:38:26 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1563
@@ -138,7 +138,7 @@ static demo_key demo_key_from_win32_vkey(DWORD vkey)
|
||||
if (vkey >= '0' && vkey <= '9')
|
||||
return vkey;
|
||||
if (vkey >= 'A' && vkey <= 'Z')
|
||||
return vkey;
|
||||
return vkey + 0x20;
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(lookup); ++i)
|
||||
{
|
||||
|
@@ -813,7 +813,6 @@ static void cxg_key_press(struct demo_window *window, demo_key key, void *user_d
|
||||
switch (key)
|
||||
{
|
||||
case 'a':
|
||||
case 'A':
|
||||
cxg->animate = !cxg->animate;
|
||||
break;
|
||||
case DEMO_KEY_ESCAPE:
|
||||
|
Reference in New Issue
Block a user