public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Vojtech Pavlik <vojtech@suse.cz>
To: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Mouse button swapping
Date: Tue, 13 Dec 2005 08:34:23 +0100	[thread overview]
Message-ID: <20051213073423.GA7784@midnight.suse.cz> (raw)
In-Reply-To: <200512130108.29822.dtor_core@ameritech.net>

On Tue, Dec 13, 2005 at 01:08:28AM -0500, Dmitry Torokhov wrote:
> On Friday 09 December 2005 09:10, Jan Engelhardt wrote:
> > Hi,
> > 
> > 
> > I produced a small patch that allows one to flip the mouse buttons at the 
> > kernel level. This is useful for changing it on a per-system basis, i.e. it 
> > will affect gpm, X and VMware all at once. It is changeable through
> > /sys/module/mousedev/swap_buttons at runtime. Is this something mainline would
> > be interested in?
> 
> I am not sure if this should be done in kernel. It will also not work for mouse
> drivers using event interface (which hopefully will be default someday) instead
> of legacy mousedev interface.
 
It shouldn't be done by the kernel. Perhaps a shared configuration, but
the same way keymaps aren't handled by the kernel for the applications,
mouse button remapping shouldn't be there.

On the other hand, we have button remapping in joydev, to support old
applications that can't handle it themselves. By the same logic, it
could be in mousedev, to support remapping of buttons on applications
(older vmware), where there is no way to change it.

-- 
Vojtech Pavlik
SuSE Labs, SuSE CR

      reply	other threads:[~2005-12-13  7:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-09 14:10 Mouse button swapping Jan Engelhardt
2005-12-12 11:08 ` Clemens Koller
2005-12-12 11:45 ` Pavel Machek
2005-12-13  6:08 ` Dmitry Torokhov
2005-12-13  7:34   ` Vojtech Pavlik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20051213073423.GA7784@midnight.suse.cz \
    --to=vojtech@suse.cz \
    --cc=dtor_core@ameritech.net \
    --cc=jengelh@linux01.gwdg.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox