Three button mouse emulation

Polytropon freebsd at edvax.de
Wed Oct 26 11:59:58 UTC 2011


On Tue, 25 Oct 2011 07:06:08 -1000, Open Slate wrote:
> A simple way to enable three button mouse emulation is to put
> 
> mouse_flags=-3
> 
> in /etc/rc.conf.

I always thought it was moused_flags (according to moused),
has this been changed, or is it just a typo?

On my old system, I had a setting like this:

	moused_flags="-z 4"

And for X, there was an additional setting:

	Option	"Emulate3Buttons"	"true"
	Option	"EmulateWheel"		"true"
	Option	"EmulateWheelButton"	"2"
	Option	"ZAxisMapping"		"4 5"

This setting makes the middle mouse button to "be the
mouse wheel" when the mouse is moved in Y direction.
This applies to 3 button standard mice (which I do
prefer over those clumsy wheel things).

A slightly changed setting could make the left _plus_
right button appear as the middle button, being that
_and_ the mouse wheel.

This configuration suggestion could be helpful for users
who suffer from a two-button glidepad on their laptops.



> I cannot find this documented anywhere. Section 4.5 of the
> faq mentions this feature and refers to the moused man page, where we are
> told to pass -3 to moused. Similar treatment in the handbook. Section
> 2.10.10. Only a seasoned veteran would think to look in
> /etc/defaults/rc.conf.

I don't see more than generic advice in that file
regarding the use of moused flags.



> This trick is especially useful to laptop users and should be in the
> handbook.

Fully agree. Maybe an additional hint on how to make
X work better on such limited hardware configuration
would be nice.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list