added 'y' key to known keys for soso

This commit is contained in:
ozkl 2019-09-06 10:31:50 +03:00
parent c85549977f
commit 055456a023

View File

@ -61,6 +61,9 @@ static unsigned char convertToDoomKey(unsigned char scancode)
case 0x36: case 0x36:
key = KEY_RSHIFT; key = KEY_RSHIFT;
break; break;
case 0x15:
key = 'y';
break;
default: default:
break; break;
} }
@ -70,6 +73,8 @@ static unsigned char convertToDoomKey(unsigned char scancode)
static void addKeyToQueue(int pressed, unsigned char keyCode) static void addKeyToQueue(int pressed, unsigned char keyCode)
{ {
//printf("key hex %x decimal %d\n", keyCode, keyCode);
unsigned char key = convertToDoomKey(keyCode); unsigned char key = convertToDoomKey(keyCode);
unsigned short keyData = (pressed << 8) | key; unsigned short keyData = (pressed << 8) | key;