Add more special key codes to keyboard keys

ref T404
This commit is contained in:
Roland Winklmeier
2018-10-22 12:14:48 +02:00
committed by Klaus Basan
parent 6cb0ed583e
commit 0f140cb155
6 changed files with 80 additions and 9 deletions

View File

@@ -59,6 +59,24 @@ namespace BlackInput
{ VK_RCONTROL, Key_ControlRight },
{ VK_LMENU, Key_AltLeft },
{ VK_RMENU, Key_AltRight },
{ VK_ADD, Key_Plus },
{ VK_OEM_PLUS, Key_Plus },
{ VK_SUBTRACT, Key_Minus },
{ VK_OEM_MINUS, Key_Minus },
{ VK_OEM_PERIOD, Key_Period },
{ VK_DIVIDE, Key_Divide },
{ VK_MULTIPLY, Key_Multiply },
{ VK_OEM_COMMA, Key_Comma },
{ VK_NUMPAD0, Key_Numpad0 },
{ VK_NUMPAD1, Key_Numpad1 },
{ VK_NUMPAD2, Key_Numpad2 },
{ VK_NUMPAD3, Key_Numpad3 },
{ VK_NUMPAD4, Key_Numpad4 },
{ VK_NUMPAD5, Key_Numpad5 },
{ VK_NUMPAD6, Key_Numpad6 },
{ VK_NUMPAD7, Key_Numpad7 },
{ VK_NUMPAD8, Key_Numpad8 },
{ VK_NUMPAD9, Key_Numpad9 },
};
return hash;
}

View File

@@ -7,9 +7,7 @@
* contained in the LICENSE file.
*/
/*!
\file
*/
//! \file
#ifndef BLACKINPUT_KEYBOARD_WINDOWS_H
#define BLACKINPUT_KEYBOARD_WINDOWS_H
@@ -23,7 +21,7 @@
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <windows.h>
#include <Windows.h>
namespace BlackInput
{