Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Does your MX-1000 work with btnx now?
Yes it works. I took the default_config_MX1000 file and copied it in btnx_config place.
The "middle button left" and "middle button right" events had to be commented out and wheel tilt events uncommented - then things started to work.
P.S. One thing makes me thinking - is there a way to define doubleclick event?
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
tim71
Yes it works. I took the default_config_MX1000 file and copied it in btnx_config place.
The "middle button left" and "middle button right" events had to be commented out and wheel tilt events uncommented - then things started to work.
P.S. One thing makes me thinking - is there a way to define doubleclick event?
Ok, I'll fix that. Doubleclicking isn't technically supported, but there's a small hack to make it work. You can change the type value of a button that is originally set to type=0. Change it to type=1 and then keycode=BTN_LEFT
That should make a double left click. Playing with the type values isn't exactly recommended.
Re: btnx: Send keyboard and mouse combination events with mouse buttons
OK, here goes:
Here's the "InputDevice" section of my xorg.conf:
Code:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "auto"
Option "ZAxisMapping" "4 5"
Option "Emulate3Buttons" "no"
Option "Buttons" "3"
EndSection
If you refer back to that text file I posted, you will see that the second half includes the hexdump info from after I changed the protocol to "auto".
When I get a chance, I'll swap mouses while running *******, in case it's just a malfunctioning mouse.
*** As an aside, if anyone is using a mouse that has been configured previously using some other method, like evdev, my suggestion is to hexdump off of a live CD, rather than trying to undo all their hard work first. i.e. record the hexdump in a text file, and email it to themselves, or write it strait to a floppy, rather than leaving it in temporary filespace that disappears upon reboot. (You could also manually mount your filesystem, but that's probably a bit much trouble to go through.)
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Doubleclicking isn't technically supported, but there's a small hack to make it work. You can change the type value of a button that is originally set to type=0. Change it to type=1 and then keycode=BTN_LEFT
That should make a double left click. Playing with the type values isn't exactly recommended.
Thanks for the tip. It seems to work, but not 100% - in some programs thing does a "wrong move" sometimes. Will try to test it more.
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
blazoner
As an aside, if anyone is using a mouse that has been configured previously using some other method, like evdev, my suggestion is to hexdump off of a live CD, rather than trying to undo all their hard work first. i.e. record the hexdump in a text file, and email it to themselves, or write it strait to a floppy, rather than leaving it in temporary filespace that disappears upon reboot. (You could also manually mount your filesystem, but that's probably a bit much trouble to go through.)
I had no problem with this - i just commented out evdev-driven InputDevice and reference to it in ServerLayout section of xorg.conf leaving me with the default Mouse0 input device. Dumps came out fine after that and now btnx works too. And there is always easy way to change back - just uncomment few lines in xorg.conf and restart X.
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
daou
Ok, I'll fix that. Doubleclicking isn't technically supported, but there's a small hack to make it work. You can change the type value of a button that is originally set to type=0. Change it to type=1 and then keycode=BTN_LEFT
That should make a double left click. Playing with the type values isn't exactly recommended.
Just remember that this approach requires both the press and release events in order to register a "double-click". In other words, if you click and hold the button for too long, it won't "double-click", but will still register two separate BTN_LEFT events.
Another method some people have used includes XBindKeys.
It would be nice if there were a simple wrapper for creating keyboard shortcuts using uinput or something similar. (I haven't found any yet.) Letting you map Key and button events, and even call scripts.
"System - Preferences - Keyboard Shortcuts" seems woefully inadequate for this process.
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
tim71
I had no problem with this - i just commented out evdev-driven InputDevice and reference to it in ServerLayout section of xorg.conf leaving me with the default Mouse0 input device. Dumps came out fine after that and now btnx works too. And there is always easy way to change back - just uncomment few lines in xorg.conf and restart X.
Cool! I'm still a noob, and constantly learning more. Thanks for the tip! :D
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Igot btnx working like I want for the most part. I set up the side buttons for forward an back in firefox and naultilist. The only problem I have is when I go back or foward in firefox, I get sent two pages instead of one. I have the buttons configures this way. It does not happen in naultilist so I think it is just firefox.
Code:
Front side button
Button
rawcode = 0x01011400
type = 0
keycode = KEY_RIGHT
mod1 = KEY_LEFTALT
EndButton
Rear side button
Button
rawcode = 0x01011300
type = 0
keycode = KEY_LEFT
mod1 = KEY_LEFTALT
EndButton
If any one has any ideas please let me know
Re: btnx: Send keyboard and mouse combination events with mouse buttons
Quote:
Originally Posted by
sjust
Igot btnx working like I want for the most part. I set up the side buttons for forward an back in firefox and naultilist. The only problem I have is when I go back or foward in firefox, I get sent two pages instead of one. I have the buttons configures this way. It does not happen in naultilist so I think it is just firefox.
Code:
Front side button
Button
rawcode = 0x01011400
type = 0
keycode = KEY_RIGHT
mod1 = KEY_LEFTALT
EndButton
Rear side button
Button
rawcode = 0x01011300
type = 0
keycode = KEY_LEFT
mod1 = KEY_LEFTALT
EndButton
If any one has any ideas please let me know
Try using the same buttons in firefox without btnx. It is possible that you are getting mouse events without btnx that firefox already interprets as back/forward commands.
Re: btnx: Send keyboard and mouse combination events with mouse buttons
You are right. I stoped btnx and the back button only goes back one instead of two. Of course the other buttons do not work right now. Back button does not work in naultilist any more either. I guess I will either have to have btnx not work with firefox or tweak the settings in firefox.