actual joystick input

also sync keyboard input nicely
This commit is contained in:
StapleButter
2017-09-30 20:05:56 +02:00
parent 9f486de76a
commit ab9800fbac
4 changed files with 61 additions and 9 deletions

View File

@ -508,6 +508,16 @@ void ReleaseScreen()
}
void SetKeyMask(u32 mask)
{
u32 key_lo = mask & 0x3FF;
u32 key_hi = (mask >> 10) & 0x3;
KeyInput &= 0xFFFCFC00;
KeyInput |= key_lo | (key_hi << 16);
}
void Halt()
{
printf("Halt()\n");