Here is a patch providing gestures and quick erase. I haven't tested it too much yet, but it does seem to work.
Not that many functions are defined, and the only directions recognized is left, right, up and down. So no diagonal lines here. :-D
To start a gesture:
Press and hold for a short second, then draw the gesture. The LED turns on if in gesture mode. If you wanted to draw one, but failed (no LED), stop and hold will turn the line into an erase line. This will delete the line, but also scribbles under the line...
Quick erase is just as before, draw something, but stop and hold still for a second before releasing. The line and lines that were passed will be deleted.
The pre-defined gestures are:
LEFT-UP: darker color
LEFT-DOWN: lighter color
RIGHT-UP: Thicker pen
RIGHT-DOWN: Thinner pen
RIGHT-DOWN-LEFT-UP (draw a box): Zoom in using the box (very cool!)
DOWN-UP: Refresh the screen
Any feedback from testing is very welcome!
Edit: Fixed a bug where the erase line on quick erase was not erased itself.
Edit2: This patch also provides saving pen settings to the manifest file and reading it on startup. I had forgotten all about that. :-)
Last edited by rincewind; 11-03-2007 at 06:52 AM.
Reason: Forgot to mention functionality