Author Topic: Feature Modification  (Read 3472 times)

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« on: January 05, 2005, 12:10:37 am »
ctrl, alt or middle/right click should be mappable on the buttons next to the jog (the ok/cancel ones)

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« Reply #1 on: January 05, 2005, 06:04:41 pm »
no one agrrees...?

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Feature Modification
« Reply #2 on: January 05, 2005, 06:30:36 pm »
edit the file /usr/bin/inputconfig.py

add the lines

Code: [Select]
self.store.append(["side ok",131,True])
self.store.append(["side cancel",132,True])

and
Code: [Select]
self.store1.append(["side ok",131,True])
self.store1.append(["side cancel",132,True])

And run the input setup app might be enough to see you wish come true.

Untested....
SLC-860 cacko / senao wifi

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« Reply #3 on: January 06, 2005, 09:13:31 pm »
works perfectly - thanks

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« Reply #4 on: January 07, 2005, 10:42:23 am »
well, would be very usefull some sort of fast switching between different input configurations. It's annoying restarting X when you switch lanscape and pdamode, and right/middle clicks mapped to side buttons are not usable when in laptop mode.

donquixote

  • Jr. Member
  • **
  • Posts: 79
    • View Profile
Feature Modification
« Reply #5 on: January 07, 2005, 12:39:03 pm »
You use the side buttons when in landscape mode? I don't, I would find it very inconvenient.

dq


***

Edit: Oh, wait I just re-thought what you were talking about-- I get it now and I agree with you.

I guess a workaround would be to re-map the ok and cancel buttons to the ones that used to be the alt and right click buttons-- but you're right that is annoying.

q
« Last Edit: January 07, 2005, 12:44:49 pm by donquixote »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Feature Modification
« Reply #6 on: January 07, 2005, 04:05:14 pm »
ok to do this.

set the key with inputconfig for the portrait and save

cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.portrait
 

set the key with inputconfig for the landscape, save and copy

cp /etc/X11/kb/userdefined.xmodmap /etc/X11/kb/userdefined.landscape

* edit /etc/sysconfig/clamshell/landscape.sh
and add
Code: [Select]
xmodmap /etc/X11/kb/userdefined.landscape
* edit /etc/sysconfig/clamshell/portrait.sh
and add
Code: [Select]
xmodmap /etc/X11/kb/userdefined.portrait
And it should do what you want.

Note: try too take look at /etc/X11/kb/corgi.xmodmap and userdefined.xmodap , a bit of xmodmap documentation and use xev in a console to find the keycode.

I don't mind helping you at all, it's just that it's not that difficult to understand and you might like to do these things yourself.
SLC-860 cacko / senao wifi

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Feature Modification
« Reply #7 on: January 07, 2005, 04:12:53 pm »
actually after setting the keys with input config, I thinkl calling
Code: [Select]
xmodmap /etc/X11/kb/userdefined.xmodmap in a console should be enough.

For Laze: I wonder if it would not be a good thing to add calls to clear Modx and Add Modx in the userdefined.xmodmap when it contains modification for ALt and Ctrl bindings.
SLC-860 cacko / senao wifi

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« Reply #8 on: January 07, 2005, 04:14:06 pm »
in fact, I really apreciate your help. The reason for I opened this thread is that I think the feature should be officially implemented in the distro, maybe in the pyton tools. Actually, I opened a feature request in the pdaxrom site

anyway, nice hint

scoutme

  • Hero Member
  • *****
  • Posts: 579
    • View Profile
Feature Modification
« Reply #9 on: January 07, 2005, 04:16:59 pm »
...mouse clicks are mapped with xmodmap too?

I don't think so.
I cannot find where the file input.cfg, modified by inputconfig.py, is used during the matchbox start sequence
« Last Edit: January 07, 2005, 04:21:54 pm by scoutme »

pgas

  • Hero Member
  • *****
  • Posts: 1097
    • View Profile
    • http://
Feature Modification
« Reply #10 on: January 07, 2005, 04:38:43 pm »
hmm, you are right, from what i see the key mapping for the click are in fact stored as environnent variable when X start (in the startx script).

That's why you need to restart X....

I'm not sure if there is another solution in this case...    exept using something like the xmonobut applet instead of the key modifier for clicks in portrait...
« Last Edit: January 07, 2005, 04:39:23 pm by pgas »
SLC-860 cacko / senao wifi

Laze

  • Hero Member
  • *****
  • Posts: 704
    • View Profile
    • http://www.pdaXrom.org
Feature Modification
« Reply #11 on: January 08, 2005, 05:09:33 am »
X needs to be restarted to change the mapping of the ctrl+alt keys and the right/middle mouse buttons layout - actually the ctrl+alt also changed under clean bash after reboot.

The idea with two different mappings for the two different rotations have been discussed and will probally implemented along the way later - the ideal situation would allow you too map each key :-)
« Last Edit: January 08, 2005, 05:10:58 am by Laze »
C760 running pdaXrom lastest ;-)
SL5500 Running Cacko Qtopia
512 MB SD Card, 128 MB CF Card, Prism2 CF Wlan.

Always visit http://www.pdaXrom.org for latest news.