summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas <andreas@hdvdr.(none)>2013-11-23 17:20:36 (GMT)
committerandreas <andreas@hdvdr.(none)>2013-11-23 17:20:36 (GMT)
commit0da68648e2d63c71a7d8fb05bb58cdf5c734a03a (patch)
tree6304dd7b1a2e263a08889916f2e4c8cc94627daf
parentde1ff774809db3965f386698937e766a58804525 (diff)
downloadvdr-plugin-gamepad-0da68648e2d63c71a7d8fb05bb58cdf5c734a03a.tar.gz
vdr-plugin-gamepad-0da68648e2d63c71a7d8fb05bb58cdf5c734a03a.tar.bz2
add support for numeric keys
-rwxr-xr-xgamepad_process_keys_thread.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gamepad_process_keys_thread.c b/gamepad_process_keys_thread.c
index 1f08c29..0f1d7de 100755
--- a/gamepad_process_keys_thread.c
+++ b/gamepad_process_keys_thread.c
@@ -78,6 +78,16 @@ void cGamepadProcessKeysThread::loadKeyMap()
else if (strcmp(token, "Yellow" ) == 0) vdrKey = kYellow ;
else if (strcmp(token, "Blue" ) == 0) vdrKey = kBlue ;
else if (strcmp(token, "Info" ) == 0) vdrKey = kInfo ;
+ else if (strcmp(token, "0" ) == 0) vdrKey = k0 ;
+ else if (strcmp(token, "1" ) == 0) vdrKey = k1 ;
+ else if (strcmp(token, "2" ) == 0) vdrKey = k2 ;
+ else if (strcmp(token, "3" ) == 0) vdrKey = k3 ;
+ else if (strcmp(token, "4" ) == 0) vdrKey = k4 ;
+ else if (strcmp(token, "5" ) == 0) vdrKey = k5 ;
+ else if (strcmp(token, "6" ) == 0) vdrKey = k6 ;
+ else if (strcmp(token, "7" ) == 0) vdrKey = k7 ;
+ else if (strcmp(token, "8" ) == 0) vdrKey = k8 ;
+ else if (strcmp(token, "9" ) == 0) vdrKey = k9 ;
else if (strcmp(token, "PlayPause" ) == 0) vdrKey = kPlayPause ;
else if (strcmp(token, "Play" ) == 0) vdrKey = kPlay ;
else if (strcmp(token, "Pause" ) == 0) vdrKey = kPause ;