wiki:AccelKeyboard

AccelKeyboard

...aims at creating a "smart" virtual keyboard, a daemon running in the background and generating X events based on accelerometer data.

At this moment it's considered alpha quality, although it does allow to play LiquidWar quite efficiently. Current version is officially named:

0.1pre-alpha codenamed Zecrazytux's Bane

Code

Code can be obtained by running:

bzr co http://lwb.elka.pw.edu.pl/bzr/parkour/accelkbd

Running

A stock Hackable:1 rev4 installation will need "python-xlib" to be installed

To run AccelKeyboard, please use:

export DISPLAY=:0
python accelkbd.py

Generated X-events are sent to the XWindow that has the focus at the moment of event generation. You can test it easily with Gnumeric (moving about in the spreadsheet).

To run LiquidWar with AccelKeyboard, you can use:

export DISPLAY=:0
python accelkbd.py &
/usr/games/liquidwar -silent

Remember to install LiquidWar first (it's in the repos), and to swap orientation to horizontal!

Using

Currently AccelKeyboard is hardcoded to generate the following key presses:

  • phone rolled left - Up arrow
  • phone rolled right - Down arrow
  • phone yawed forward - Right arrow
  • phone yawed down - Left arrow

Why? Because you play LiquidWar in the horizontal orientation! :)

To Do's and Plans

Everything! Firstly, some code clean-ups (a big hack right now...), then some configuration files/options, etc.

More Info

Project's home is  here, more up-to-date info will be available there before it gets here.