diff options
author | Christian Beier <cb@shoutrlabs.com> | 2018-02-26 14:32:36 +0100 |
---|---|---|
committer | Christian Beier <cb@shoutrlabs.com> | 2018-02-26 14:32:36 +0100 |
commit | f84d90c9e80ce6c12150d1bfe0f8f5fc44c90396 (patch) | |
tree | 33106f23d26691348b200f27be23faf0eac87e81 /examples | |
parent | d34c7b07aca7a8c7cd0ea0fb41971992e5dc4670 (diff) | |
download | libtdevnc-f84d90c9e80ce6c12150d1bfe0f8f5fc44c90396.tar.gz libtdevnc-f84d90c9e80ce6c12150d1bfe0f8f5fc44c90396.zip |
androidvncserver: remove keycodes not in NDK anymore
This makes the android VNC server example build again.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/androidvncserver.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/examples/androidvncserver.c b/examples/androidvncserver.c index a8c4827..237c68d 100644 --- a/examples/androidvncserver.c +++ b/examples/androidvncserver.c @@ -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 |