Sunday, February 27, 2011

Keyboard Control

Some users run ReelPortal on a Home Theater PC, and wanted to use their remote control to operate the software.  So I just added some rudimentary keyboard controls:

button1=1
button2=2
button3=3
button4=4
button5=5
button6=6
button7=7
button8=8
button9=9
button10=0
exit=q
fullscreen=f


For example, pressing 1 is equivalent to clicking on button 1, and press 'q' to exit.

Caution:  When running the web client in a browser, keyboard input is disabled by the Flash Player when the app is in Fullscreen mode.  Press Esc to switch back to Normal mode.  This is not an issue if you run ReelPortal on Adobe AIR.

The below applies to Adobe AIR version only:

To modify the keyboard mapping to your liking, just create the following file in the directory where ReelPortal is installed, and change the keys on the right hand side of the "=" sign.  Do not change the order of the buttons or delete any buttons!  It will mess things up.

keyboard.txt:
button1=1
button2=2
button3=3
button4=4
button5=5
button6=6
button7=7
button8=8
button9=9
button10=0
exit=q
fullscreen=f


As always, I welcome any comments/suggestions.

No comments:

Post a Comment