OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: jcabrer on September 29, 2005, 02:33:31 pm

Title: Checking For Button Presses
Post by: jcabrer on September 29, 2005, 02:33:31 pm
Now that I'm a bit more comfortable building ipks, I'd like to work up an ipk that installs proper support on the SL-6000 for rotation/direction pad matching, and so forth.  What I don't know right now is what process is listening for button presses.

Can someone enlighten me?

Here is what I'm looking to implement:

Rotate Left
Rotate Right
Upside Down
Rightside Up

All with matching direction input using the Lamp/Rotate button located above the OK button.  A short press would toggle the lamp.  A long press would rotate the screen counter clockwise 90 degrees.
Title: Checking For Button Presses
Post by: pgas on October 01, 2005, 04:34:12 pm
Are you using openbox (the windows manager that comes by default)?

If yes then add a shorcut in /etc/xdg/openbox/rc.xml

use xev to find the key to which you key is bound to. (possibly modify it in /etc/X11/kb/tosa.xmodmap)

There is no easy way to differentiate a long press from a short one this way.