androidvncserver: remove keycodes not in NDK anymore

This makes the android VNC server example build again.
pull/3/head
Christian Beier 7 years ago
parent d34c7b07ac
commit f84d90c9e8
No known key found for this signature in database
GPG Key ID: 421BB3B45C6067F8

@ -243,7 +243,7 @@ static int keysym2scancode(rfbBool down, rfbKeySym key, rfbClientPtr cl)
} else if (code>=0xFF50 && code<=0xFF58) {
static const uint16_t map[] =
{ KEY_HOME, KEY_LEFT, KEY_UP, KEY_RIGHT, KEY_DOWN,
KEY_SOFT1, KEY_SOFT2, KEY_END, 0 };
KEY_END, 0 };
scancode = map[code & 0xF];
} else if (code>=0xFFE1 && code<=0xFFEE) {
static const uint16_t map[] =
@ -264,10 +264,7 @@ static int keysym2scancode(rfbBool down, rfbKeySym key, rfbClientPtr cl)
scancode = map[(code & 0x5F) - 'A'];
} else {
switch (code) {
case 0x0003: scancode = KEY_CENTER; break;
case 0x0020: scancode = KEY_SPACE; break;
case 0x0023: scancode = KEY_SHARP; break;
case 0x0033: scancode = KEY_SHARP; break;
case 0x002C: scancode = KEY_COMMA; break;
case 0x003C: scancode = KEY_COMMA; break;
case 0x002E: scancode = KEY_DOT; break;
@ -280,7 +277,6 @@ static int keysym2scancode(rfbBool down, rfbKeySym key, rfbClientPtr cl)
case 0xFF1B: scancode = KEY_BACK; break;
case 0xFF09: scancode = KEY_TAB; break;
case 0xFF0D: scancode = KEY_ENTER; break;
case 0x002A: scancode = KEY_STAR; break;
case 0xFFBE: scancode = KEY_F1; break; // F1
case 0xFFBF: scancode = KEY_F2; break; // F2
case 0xFFC0: scancode = KEY_F3; break; // F3

Loading…
Cancel
Save