2010-11-29, 20:37
In my free time, I'm hacking together a ncurses ssh 'remote'. Basically trying to use EventServer to replace a keyboard. (For those days I lose the remote in the couch....).
I've got it working rather well for key presses, however when the virtual keyboard is up everything gets remapped to "61440".
Virtual Keyboard Up:
Home Menu:
The only buttons that seem to work are the arrow keys, but those I'm sending as R1 buttons.
Relevant Code:
I've got it working rather well for key presses, however when the virtual keyboard is up everything gets remapped to "61440".
Virtual Keyboard Up:
Code:
13:16:36 T:2689971520 M:5138317312 DEBUG: OnKey: 61525 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138317312 DEBUG: OnKey: 61523 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138313216 DEBUG: OnKey: 61524 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138292736 DEBUG: OnKey: 61512 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138292736 DEBUG: OnKey: 61452 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138157568 DEBUG: OnKey: 61454 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138157568 DEBUG: OnKey: 61520 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138145280 DEBUG: OnKey: 61522 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138145280 DEBUG: OnKey: 61507 pressed, trying keyboard action 61440
13:16:36 T:2689971520 M:5138128896 DEBUG: OnKey: 61511 pressed, trying keyboard action 61440
13:16:37 T:2689971520 M:5138137088 DEBUG: OnKey: 61519 pressed, trying keyboard action 61440
13:16:37 T:2689971520 M:5138137088 DEBUG: OnKey: 61512 pressed, trying keyboard action 61440
13:16:37 T:2689971520 M:5138132992 DEBUG: OnKey: 61524 pressed, trying keyboard action 61440
13:16:37 T:2689971520 M:5138190336 DEBUG: OnKey: 61508 pressed, trying keyboard action 61440
13:16:37 T:2689971520 M:5138190336 DEBUG: OnKey: 61513 pressed, trying keyboard action 61440
Home Menu:
Code:
13:16:45 T:2689971520 M:5141086208 DEBUG: OnKey: 61520 pressed, action is Play
13:16:45 T:2689971520 M:5141086208 DEBUG: OnKey: 61521 pressed, action is Queue
13:27:22 T:2689971520 M:5334847488 DEBUG: OnKey: 61467 pressed, action is PreviousMenu
The only buttons that seem to work are the arrow keys, but those I'm sending as R1 buttons.
Relevant Code:
Code:
case KEY_LEFT:
xbmc.SendButton("left","R1",BTN_NO_REPEAT);
break;
case KEY_RIGHT:
xbmc.SendButton("right","R1",BTN_NO_REPEAT);
break;
default:
xbmc.SendButton(0xEFE0+ch,"KB",BTN_NO_REPEAT);