Fix alt buttons and add hack to combat flickery key presses (far from perfect)

This commit is contained in:
Reece Mackie 2019-04-26 20:31:56 +01:00
commit 3ee97ceb4f
2 changed files with 108 additions and 13 deletions

View file

@ -3220,6 +3220,9 @@ static void PollInputEvents(void)
if (actualKey > -1)
currentKeyState[actualKey] = msg->Char0;
if (msg->Char0)
msg->Char0 = 2;
break;
}

View file

@ -205,7 +205,7 @@ static int android_close(void *cookie)
#if defined(PLATFORM_UWP)
#define MAX_MESSAGES 128 //If there are over 128 messages, I will cry... either way, this may be too much
#define MAX_MESSAGES 512 //If there are over 128 messages, I will cry... either way, this may be too much EDIT: Welp, 512
static int UWPOutMessageId = -1; //Stores the last index for the message
static UWPMessage* UWPOutMessages[MAX_MESSAGES]; //Messages out to UWP