summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorChristian Beier <cb@shoutrlabs.com>2018-02-26 14:32:36 +0100
committerChristian Beier <cb@shoutrlabs.com>2018-02-26 14:32:36 +0100
commitf84d90c9e80ce6c12150d1bfe0f8f5fc44c90396 (patch)
tree33106f23d26691348b200f27be23faf0eac87e81 /examples
parentd34c7b07aca7a8c7cd0ea0fb41971992e5dc4670 (diff)
downloadlibtdevnc-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.c6
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