OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V   1 2 >  
Reply to this topicStart new topic
> Mouse Right Click Solutions Found!
ZDevil
post Oct 15 2007, 02:44 AM
Post #1





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I came across this patch of tslib to enable a pressure tap (i.e. tap & hold) to act as the mouse right click (or mouse button 3). Looks like also applicable to titchy debian.

http://ion0.com/iliad/Multi-Button/xserver...tslib-patch.txt
(the originial discussion is about X support for iRex iLiad here: http://www.mobileread.com/forums/archive/i...hp/t-11285.html )

Anyone wants to have a go?
[EDIT] I found the source of tslib. Will do my little experiment today. smile.gif
http://prdownload.berlios.de/tslib/tslib-1.0.tar.bz2
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 02:53 AM
Post #2





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Just a wild thought:
Perhaps it would be even better if the long press becomes Fn (Mode_Switch) + tap. But how? rolleyes.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 07:46 AM
Post #3





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I've incorporated the changes in the patch to xc/programs/xserver/hw/tinyx/linux/tslib.c in the XFree86-4.7.0 source , which is supposed to enable emulation of right click as long press:

[attachment=4920:tslib.c.txt]

But I am not sure what to do next. Anyone skilful enough to get it compiled? rolleyes.gif

And now I begin to suspect that right click actually only works in the taskbar of xfce4....
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 08:23 AM
Post #4





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Wait, zdevil ...

Perhaps you shouldn't go overboard to tamper with the mighty xserver... sad.gif

Perhaps this one is an easier solution: http://packages.debian.org/lenny/mouseemu

Does anyone know how to play with mouseemu?

QUOTE
mouseemu - Emulate mouse buttons and mouse wheel
Mouseemu is a daemon to emulate mouse buttons on trackpads with only one button. It lets you:
- emulate middle and right click
- emulate mouse wheel
- block trackpad while typing
Go to the top of the page
 
+Quote Post
Chero
post Oct 15 2007, 11:07 AM
Post #5





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



Has this brought you anywhere yet ?

I was thinking : can't we use a keymap file from debian-eabi or pdaX or whatever that has the right click in it ?

Chero.
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 11:08 AM
Post #6





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Does any Zaurus keymap has a right click in it? ohmy.gif

... now I seem to remember. Is it the setting in user.xmodmap (path)?

This post has been edited by ZDevil: Oct 15 2007, 11:24 AM
Go to the top of the page
 
+Quote Post
Chero
post Oct 15 2007, 11:46 AM
Post #7





Group: Members
Posts: 1,141
Joined: 22-April 04
From: Belgium
Member No.: 2,962



QUOTE(ZDevil @ Oct 15 2007, 09:08 PM) *
Does any Zaurus keymap has a right click in it? ohmy.gif

... now I seem to remember. Is it the setting in user.xmodmap (path)?


I don't know.
All I know is I once lost my right-click after messing with kernel.map and spitz.xmodmap in pdaX.

Chero.
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 01:53 PM
Post #8





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



I got a solution!

Searching the old posts here a bit, I found this useful post: http://www.oesf.org/forum/index.php?showto...3773&st=165

Just compiled xmonobut, which is also used in OZ/Angstrom GPE. It works in Debian too. wink.gif

Uploaded to the Contrib & Packages Thread...
Go to the top of the page
 
+Quote Post
dlj0
post Oct 15 2007, 05:15 PM
Post #9





Group: Members
Posts: 219
Joined: 3-March 06
Member No.: 9,282



QUOTE(ZDevil @ Oct 15 2007, 05:53 PM) *
I got a solution!

Searching the old posts here a bit, I found this useful post: http://www.oesf.org/forum/index.php?showto...3773&st=165

Just compiled xmonobut, which is also used in OZ/Angstrom GPE. It works in Debian too. wink.gif

Uploaded to the Contrib & Packages Thread...


I remember xmonobut from pdaXrom. It was real, real tiny, and controlling it was more trouble than it was worth. What is wrong with using keylaunch to remap the button order through xmodmap?
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 15 2007, 10:44 PM
Post #10





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



QUOTE(dlj0 @ Oct 16 2007, 03:15 AM) *
I remember xmonobut from pdaXrom. It was real, real tiny, and controlling it was more trouble than it was worth. What is wrong with using keylaunch to remap the button order through xmodmap?

Sorry, i don't get it. How to remap the mouse buttons to keyboard keys using keylaunch? rolleyes.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 16 2007, 01:18 AM
Post #11





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



You are right, dlj0! keylaunch works. Thank you! wink.gif

Just install the keylaunch package and set up a ~/.keylaunchrc like this:

CODE
# Format: key=...KeyName: Command
# ... = No modifier
# *.. = Shift
# .*. = Ctrl
# ..* = Alt

key=...F12:xmodmap -e "pointer = 1 2 3"  ## Press [Home] key to return to default setting (tap = left click)
key=*..Mode_switch:xmodmap -e "pointer = 2 3 1"  ## Press [Shift]+[Mode_switch] and tap to make a middle click
key=.*.Mode_switch:xmodmap -e "pointer = 3 1 2" ## Press [Ctrl]+[Mode_switch] and tap to make a right click


Remember to make this run when loading WM (such as by adding keylaunch & to /usr/bin/startx or ~/.xinitrc)

And interestingly, after installing keylaunch the pointer jumping issue is alleviated.
Go to the top of the page
 
+Quote Post
jpmatrix
post Oct 16 2007, 03:57 AM
Post #12





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



keylaunch installed
hmmm... excuse my ignorance, but how do you do "F12" and "Mode_Switch" button ??? smile.gif
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 16 2007, 04:51 AM
Post #13





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



F12 = Home key
Mode_switch = Fn key
(as you can see in xev ...)

So now the Home key does two (or even three in applications using F12) job: 1) power on; 2) restore mouse left click

At first I tried to use Mode_switch only, but then I had trouble entering the special purple characters above the keys. laugh.gif
Go to the top of the page
 
+Quote Post
jpmatrix
post Oct 16 2007, 06:48 AM
Post #14





Group: Members
Posts: 1,019
Joined: 15-February 05
From: France
Member No.: 6,477



well,
it seems this doesn't work for me : keylaunch seems not to "launch" the xmodmap commands...
any idea ?
Go to the top of the page
 
+Quote Post
ZDevil
post Oct 16 2007, 07:38 AM
Post #15





Group: Members
Posts: 2,003
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



The keylaunch command should launch if:
1) you set up the right keys in ~/.keylaunch;
2) keylaunch is already running;
3) you press the right key sequence (it seems you have to first press the modifier key and then the other key, e.g. if [Ctrl]-[1] is right click then you have to press [ctrl] first and then [1].

See if this helps.

I am thinking of disabling the Right Ctrl key as it feels redundant and changing it into a sort meta key (like Ctrl-Alt-Shift), so as to be a dedicated right mouse key trigger button.
Go to the top of the page
 
+Quote Post

2 Pages V   1 2 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2014 - 07:56 PM