cellKb: fix large ASCII characters for some compilers

This commit is contained in:
Megamouse 2019-08-17 21:28:01 +02:00
parent eedf96e1f4
commit b3aff3a1c6
3 changed files with 8 additions and 8 deletions

View file

@ -130,12 +130,12 @@ s32 basic_keyboard_handler::getUnmodifiedKey(QKeyEvent* keyEvent)
return key;
}
UINT raw_key = static_cast<UINT>(key);
u32 raw_key = static_cast<u32>(key);
#ifdef _WIN32
if (keyEvent->modifiers() != Qt::NoModifier && !keyEvent->text().isEmpty())
{
UINT mapped_key = MapVirtualKeyA((UINT)keyEvent->nativeVirtualKey(), MAPVK_VK_TO_CHAR);
u32 mapped_key = (u32)MapVirtualKeyA((UINT)keyEvent->nativeVirtualKey(), MAPVK_VK_TO_CHAR);
if (raw_key != mapped_key)
{