OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: scoutme on June 29, 2005, 10:31:45 am

Title: Big Task: Setting Double Mouse Keys Def
Post by: scoutme on June 29, 2005, 10:31:45 am
Hi all, I'd like to regularly use my 860 both in laptop and in rotated/closed screen position.

with on screen keyboard you can actually type everything you like except mouse clicks - obviously.

No way to use pdaXrom without different mouse clicks


SO...

HOW can we set middle and right mouse click mod to "cancel" and "ok" external keys?

If anyone knows something like XF86MouseRight or similar to put in userdefined.xmodmap, the job becomes really really easy.

C'mon guys, awe me...
Title: Big Task: Setting Double Mouse Keys Def
Post by: Sna on July 01, 2005, 03:18:42 am
I'm also interested by a trick like this
Title: Big Task: Setting Double Mouse Keys Def
Post by: scoutme on July 02, 2005, 11:20:22 pm
maybe someone expert in xmodmap advanced option could give us a hint...
Title: Big Task: Setting Double Mouse Keys Def
Post by: pgas on July 03, 2005, 05:10:40 am
/etc/sysconfig/x11
is where the keycodes that modify the mouse button are defined.

Now these are mapped to shift and Fn, it works because they are modifiers they do nothing except to modify the next key pressed.

If you just change the previous file with the ok and cancel keycode, it won't work well (if it works at all ) because you will get a lot "Esc"  and "Enter" keys sent to the current application.

It is possible to make the 2 keys act like shift and Fn (ie they won't do return and esc) but is it what you want?

Moreover, when you change these settings (the keycode for the mouse),
you must restart X so that they take effect: it's not easy to change the keys for landscape/portrait on the fly.

Please ask if what I say is not clear enough.

maybe using xmonobut from: http://www.pdaxrom.org/ipk_feed.php (http://www.pdaxrom.org/ipk_feed.php)
is a better solution?
(it's pre RC5, but I believe it's still working, though I didn't try it recently)
Title: Big Task: Setting Double Mouse Keys Def
Post by: scoutme on July 03, 2005, 06:15:48 pm
I think I'll try to map the two kanji keys, that I use as middle and right button mod., on the ok and cancel external keys: I want to have both external and normal button modifiers working alltogether: in fact I simply do not use external ok and cancel while working in minilaptop mode.

thx, for the hint
Title: Big Task: Setting Double Mouse Keys Def
Post by: Sam Hell on July 04, 2005, 01:51:35 am
In Fact i never use Ok and Cancel in Portraitmode either

But the only Solution i see after pgas explanation is to use xmonobut.
The program still works, even in RC10, without any problems.

Nico
Title: Big Task: Setting Double Mouse Keys Def
Post by: scoutme on July 04, 2005, 06:20:42 am
yes, it seems you are right... I installed xmonobut.

The good thing is using xmonobut -k 131 -m132: so you'll have external ok and cancel  as middle and right mause click switcher  almost what we wanted