Author Topic: Checking For Button Presses  (Read 1812 times)

jcabrer

  • Full Member
  • ***
  • Posts: 161
    • View Profile
Checking For Button Presses
« 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.
Sharp SL-C3100 - pdaXrom Beta 3
Sharp SL-6000L - pdaXrom Beta 1

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Checking For Button Presses
« Reply #1 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.
SLC-860 cacko / senao wifi