projects
/
miniglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d5a029
)
win32: fixed missing VKEY translations for VK_OEM_*
author
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 24 May 2022 10:39:03 +0000
(13:39 +0300)
committer
John Tsiombikas
<nuclear@member.fsf.org>
Tue, 24 May 2022 10:39:03 +0000
(13:39 +0300)
miniglut.c
patch
|
blob
|
history
diff --git
a/miniglut.c
b/miniglut.c
index
e4a5150
..
2d8f393
100644
(file)
--- a/
miniglut.c
+++ b/
miniglut.c
@@
-1669,6
+1669,13
@@
static int translate_vkey(int vkey)
case VK_UP: return GLUT_KEY_UP;
case VK_RIGHT: return GLUT_KEY_RIGHT;
case VK_DOWN: return GLUT_KEY_DOWN;
+ case VK_OEM_1: return ';';
+ case VK_OEM_2: return '/';
+ case VK_OEM_3: return '`';
+ case VK_OEM_4: return '[';
+ case VK_OEM_5: return '\\';
+ case VK_OEM_6: return ']';
+ case VK_OEM_7: return '\'';
default:
break;
}