public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* map mouse button 4 or 5 to button 2?
@ 2004-02-18 22:05 Jeffrey J. Gray
2004-02-18 23:12 ` Chad Haynes
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Jeffrey J. Gray @ 2004-02-18 22:05 UTC (permalink / raw)
To: cygwin-xfree
Hi,
Is it possible to have either button 4 or 5 (usually the forward/back
buttons) send a 'button 2' signal (ie paste) to cygwin applications?
The reasons for this are (1) since button 2 is on the wheel, pressing
this button sometimes also accidentally sends a scroll signal making for
sloppy paste operations and (2) I just upgraded my mouse, and in the
new standard configuration, Windows intercepts button 2 and makes it a
'switch applications' signal. I need button 2 for Cygwin paste
operations, so I'm anxious to restore this functionality to my cygwin.
My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which
includes a Wireless IntelliMouse Explorer 2.0), and I'm running .... hm,
not sure how to check my Cygwin version, it's probably ~4 months old
.... on WinXP.
Thanks for the help,
Jeff
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map mouse button 4 or 5 to button 2?
2004-02-18 22:05 map mouse button 4 or 5 to button 2? Jeffrey J. Gray
@ 2004-02-18 23:12 ` Chad Haynes
2004-02-18 23:31 ` Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?) Igor Pechtchanski
` (2 subsequent siblings)
3 siblings, 0 replies; 12+ messages in thread
From: Chad Haynes @ 2004-02-18 23:12 UTC (permalink / raw)
To: cygwin-xfree
You should be able to do this using the software that came with the
mouse. If you bought it OEM you can download it from Microsofts
website. The software should allow you to set different actions for the
mouse buttons based on what program you currently using.
-Chad
Jeffrey J. Gray wrote:
> Hi,
>
> Is it possible to have either button 4 or 5 (usually the forward/back
> buttons) send a 'button 2' signal (ie paste) to cygwin applications?
> The reasons for this are (1) since button 2 is on the wheel, pressing
> this button sometimes also accidentally sends a scroll signal making
> for sloppy paste operations and (2) I just upgraded my mouse, and in
> the new standard configuration, Windows intercepts button 2 and makes
> it a 'switch applications' signal. I need button 2 for Cygwin paste
> operations, so I'm anxious to restore this functionality to my cygwin.
>
> My new mouse/keyboard setup is MS Wireless Optical Desktop Elite
> (which includes a Wireless IntelliMouse Explorer 2.0), and I'm running
> .... hm, not sure how to check my Cygwin version, it's probably ~4
> months old .... on WinXP.
>
> Thanks for the help,
> Jeff
^ permalink raw reply [flat|nested] 12+ messages in thread
* Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?)
2004-02-18 22:05 map mouse button 4 or 5 to button 2? Jeffrey J. Gray
2004-02-18 23:12 ` Chad Haynes
@ 2004-02-18 23:31 ` Igor Pechtchanski
2004-02-23 0:42 ` Joshua Daniel Franklin
2004-02-19 9:00 ` map mouse button 4 or 5 to button 2? Takuma Murakami
2004-02-19 22:02 ` Harold L Hunt II
3 siblings, 1 reply; 12+ messages in thread
From: Igor Pechtchanski @ 2004-02-18 23:31 UTC (permalink / raw)
To: cygwin-xfree; +Cc: cygwin
On Wed, 18 Feb 2004, Jeffrey J. Gray wrote:
> [snip]
> ... and I'm running .... hm, not sure how to check my Cygwin version,
> it's probably ~4 months old .... on WinXP.
Jeff,
Just like on any Unix system, "uname -srv" will return the kernel (in
Cygwin's case, cygwin1.dll) version. On Cygwin, you can also use
"cygcheck -srv" to get detailed information about your system (essential
for diagnosing Cygwin problems, see <http://cygwin.com/problems.html>), or
"cygcheck -cd" to just get the versions of all installed packages (or omit
the "-d" flag to also check them for integrity). If you post the output
of either "cygcheck -srv" or "cygcheck -cd", please *attach* it to your
message, rather than including it inline.
Igor
P.S. I was surprised that this isn't in the FAQ. David, could you please
add this, under the heading "What version of Cygwin do I have?" or
something? Oh, and BTW, there's a "What version is this, anyway?" entry
that has nothing to do with this question, and is pretty confusing.
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map mouse button 4 or 5 to button 2?
2004-02-18 22:05 map mouse button 4 or 5 to button 2? Jeffrey J. Gray
2004-02-18 23:12 ` Chad Haynes
2004-02-18 23:31 ` Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?) Igor Pechtchanski
@ 2004-02-19 9:00 ` Takuma Murakami
2004-02-19 9:21 ` J S
2004-02-19 22:02 ` Harold L Hunt II
3 siblings, 1 reply; 12+ messages in thread
From: Takuma Murakami @ 2004-02-19 9:00 UTC (permalink / raw)
To: cygwin-xfree
Jeffrey,
> Is it possible to have either button 4 or 5 (usually the forward/back
> buttons) send a 'button 2' signal (ie paste) to cygwin applications?
Chad shows the best way for your purpose. As a note, you
can swap mouse buttons via xmodmap command in UNIX like
environments. For this case
xmodmap -e "pointer = 1 5 3 4 2"
swaps button 2 and button 5.
> My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which
> includes a Wireless IntelliMouse Explorer 2.0), and I'm running .... hm,
> not sure how to check my Cygwin version, it's probably ~4 months old
> ... on WinXP.
The xmodmap way works well on Cygwin/X versions newer than
release-22 (released on 2003-11-9).
Takuma Murakami
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map mouse button 4 or 5 to button 2?
@ 2004-02-19 9:21 ` J S
2004-02-19 11:00 ` Takuma Murakami
0 siblings, 1 reply; 12+ messages in thread
From: J S @ 2004-02-19 9:21 UTC (permalink / raw)
To: cygwin-xfree
Just to confuse the issue further (sorry), can I map the right mouse button
to CTRL+F9 ?
JS.
>Jeffrey,
>
> > Is it possible to have either button 4 or 5 (usually the forward/back
> > buttons) send a 'button 2' signal (ie paste) to cygwin applications?
>
>Chad shows the best way for your purpose. As a note, you
>can swap mouse buttons via xmodmap command in UNIX like
>environments. For this case
>xmodmap -e "pointer = 1 5 3 4 2"
>swaps button 2 and button 5.
>
> > My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which
> > includes a Wireless IntelliMouse Explorer 2.0), and I'm running .... hm,
> > not sure how to check my Cygwin version, it's probably ~4 months old
> > ... on WinXP.
>
>The xmodmap way works well on Cygwin/X versions newer than
>release-22 (released on 2003-11-9).
>
>Takuma Murakami
>
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map mouse button 4 or 5 to button 2?
2004-02-19 9:21 ` J S
@ 2004-02-19 11:00 ` Takuma Murakami
0 siblings, 0 replies; 12+ messages in thread
From: Takuma Murakami @ 2004-02-19 11:00 UTC (permalink / raw)
To: cygwin-xfree
> Just to confuse the issue further (sorry), can I map the right mouse button
> to CTRL+F9 ?
I guess xmodmap cannot do such remapping. However there
are some tools which achieve the remapping in Windows layer.
Maybe there are some in UNIX layer too.
Takuma Murakami
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map mouse button 4 or 5 to button 2?
2004-02-18 22:05 map mouse button 4 or 5 to button 2? Jeffrey J. Gray
` (2 preceding siblings ...)
2004-02-19 9:00 ` map mouse button 4 or 5 to button 2? Takuma Murakami
@ 2004-02-19 22:02 ` Harold L Hunt II
2004-02-21 0:11 ` map side mouse button " Jeffrey J. Gray
3 siblings, 1 reply; 12+ messages in thread
From: Harold L Hunt II @ 2004-02-19 22:02 UTC (permalink / raw)
To: cygwin-xfree
Jeff,
I just bought the same keyboard and mouse setup and ran into the same
issue that you did. The key is to make the mouse wheel click map to
something that the mouse driver does not intercept and prevent from
being handled by the current application. The "Switch Application"
function is an intercepted function, whereas the old default
"AutoScroll" is not intercepted, so the mouse wheel click is passed
through to the current application. I am not sure there is much we can
do to force the mouse driver to pass us the mouse wheel click, so you
might just have to set it back to AutoScroll to get the desired
functionality.
Harold
Jeffrey J. Gray wrote:
> Hi,
>
> Is it possible to have either button 4 or 5 (usually the forward/back
> buttons) send a 'button 2' signal (ie paste) to cygwin applications?
> The reasons for this are (1) since button 2 is on the wheel, pressing
> this button sometimes also accidentally sends a scroll signal making for
> sloppy paste operations and (2) I just upgraded my mouse, and in the
> new standard configuration, Windows intercepts button 2 and makes it a
> 'switch applications' signal. I need button 2 for Cygwin paste
> operations, so I'm anxious to restore this functionality to my cygwin.
>
> My new mouse/keyboard setup is MS Wireless Optical Desktop Elite (which
> includes a Wireless IntelliMouse Explorer 2.0), and I'm running .... hm,
> not sure how to check my Cygwin version, it's probably ~4 months old
> .... on WinXP.
>
> Thanks for the help,
> Jeff
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map side mouse button to button 2?
@ 2004-02-21 0:11 ` Jeffrey J. Gray
2004-02-21 6:13 ` Igor Pechtchanski
2004-02-24 0:01 ` Takuma Murakami
0 siblings, 2 replies; 12+ messages in thread
From: Jeffrey J. Gray @ 2004-02-21 0:11 UTC (permalink / raw)
To: cygwin-xfree
Thanks everyone for the help. I upgraded my cygwin build to a Jan30
version, so xmodmap works and can mix around the button functions.
However, in xev, buttons '4' and '5' indeed (as someone posted earlier
today) correspond to the wheel motions, not to the buttons on the side
of my mouse. These buttons produce nothing xev -- so will it ever be
possible to use these buttons in cygwin-xfree?
Harold, your solution worked, setting the middle button to autoscroll
recovers the usual paste function.
The current solution is suboptimal--I still dislike using the wheel
button so regularly, and it seems a shame to waste the perfectly good
side buttons on the mouse. If anyone comes up with better solutions,
please let me know. For now at least everything works.
Thanks again for the help.
Jeff
PS-without subscribing to this newsgroup, is there anyway to be sure
reply messages get tied to the correct thread?? there is no 'reply to'
button from the html newsgroup archive pages where I read the postings.
(http://cygwin.com/ml/cygwin-xfree/2004-02/msg00140.html)
> Jeff,
>
> I just bought the same keyboard and mouse setup and ran into the same
> issue that you did. The key is to make the mouse wheel click map to
> something that the mouse driver does not intercept and prevent from
> being handled by the current application. The "Switch Application"
> function is an intercepted function, whereas the old default
> "AutoScroll" is not intercepted, so the mouse wheel click is passed
> through to the current application. I am not sure there is much we can
> do to force the mouse driver to pass us the mouse wheel click, so you
> might just have to set it back to AutoScroll to get the desired
> functionality.
>
> Harold
>
> Jeffrey J. Gray wrote:
>
> Hi,
>
> Is it possible to have either button 4 or 5 (usually the forward/back
> buttons) send a 'button 2' signal (ie paste) to cygwin applications?
> The reasons for this are (1) since button 2 is on the wheel, pressing
> this button sometimes also accidentally sends a scroll signal making
> for sloppy paste operations and (2) I just upgraded my mouse, and in
> the new standard configuration, Windows intercepts button 2 and makes
> it a 'switch applications' signal. I need button 2 for Cygwin paste
> operations, so I'm anxious to restore this functionality to my cygwin.
>
> My new mouse/keyboard setup is MS Wireless Optical Desktop Elite
> (which includes a Wireless IntelliMouse Explorer 2.0), and I'm running
> .... hm, not sure how to check my Cygwin version, it's probably ~4
> months old .... on WinXP.
>
>Thanks for the help,
>Jeff
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map side mouse button to button 2?
2004-02-21 0:11 ` map side mouse button " Jeffrey J. Gray
@ 2004-02-21 6:13 ` Igor Pechtchanski
2004-02-24 0:01 ` Takuma Murakami
1 sibling, 0 replies; 12+ messages in thread
From: Igor Pechtchanski @ 2004-02-21 6:13 UTC (permalink / raw)
To: cygwin-xfree
On Fri, 20 Feb 2004, Jeffrey J. Gray wrote:
> [snip]
> PS-without subscribing to this newsgroup, is there anyway to be sure
> reply messages get tied to the correct thread?? there is no 'reply to'
> button from the html newsgroup archive pages where I read the postings.
> (http://cygwin.com/ml/cygwin-xfree/2004-02/msg00140.html)
Jeff,
The easiest way to do this is to use the "Raw text" link at the top of the
archived message, read the first line, which looks something like "From
cygwin-xfree-return-NNNNN..." to get the message number (the "NNNNN"
part), then send e-mail to cygwin-xfree-get.NNNNN<at>cygwin<dot>com.
This will instruct the mailing list manager to send you an exact copy of
the given message (as an attachment). You can then reply to that message
in a regular way (if your mail client supports it, of course).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?)
2004-02-18 23:31 ` Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?) Igor Pechtchanski
@ 2004-02-23 0:42 ` Joshua Daniel Franklin
2004-02-23 3:36 ` Checking Cygwin version (FAQ Alert!) Igor Pechtchanski
0 siblings, 1 reply; 12+ messages in thread
From: Joshua Daniel Franklin @ 2004-02-23 0:42 UTC (permalink / raw)
To: cygwin-xfree, cygwin
On Wed, Feb 18, 2004 at 06:11:57PM -0500, Igor Pechtchanski wrote:
> On Wed, 18 Feb 2004, Jeffrey J. Gray wrote:
>
> > [snip]
> > ... and I'm running .... hm, not sure how to check my Cygwin version,
> > it's probably ~4 months old .... on WinXP.
>
> Jeff,
>
> Just like on any Unix system, "uname -srv" will return the kernel (in
> Cygwin's case, cygwin1.dll) version. On Cygwin, you can also use
> "cygcheck -srv" to get detailed information about your system (essential
> for diagnosing Cygwin problems, see <http://cygwin.com/problems.html>), or
> "cygcheck -cd" to just get the versions of all installed packages (or omit
> the "-d" flag to also check them for integrity). If you post the output
> of either "cygcheck -srv" or "cygcheck -cd", please *attach* it to your
> message, rather than including it inline.
Or, since all he wanted was the Cygwin version, just "uname -r" or
"cygcheck -cd cygwin" would work fine. :)
> P.S. I was surprised that this isn't in the FAQ. David, could you please
> add this, under the heading "What version of Cygwin do I have?" or
> something? Oh, and BTW, there's a "What version is this, anyway?" entry
> that has nothing to do with this question, and is pretty confusing.
Since David is still AWOL, I guess I've taken over FAQ maintainence too.
I rewrote most of the "What version is this, anyway?" entry, removing
all the references to the 'recent' (2000 April) switch to setup.exe,
and noting the difference between Cygwin the package and Cygwin the system.
You can read it at:
<http://cygwin.com/faq/faq_1.html#SEC5>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Checking Cygwin version (FAQ Alert!)
2004-02-23 0:42 ` Joshua Daniel Franklin
@ 2004-02-23 3:36 ` Igor Pechtchanski
0 siblings, 0 replies; 12+ messages in thread
From: Igor Pechtchanski @ 2004-02-23 3:36 UTC (permalink / raw)
To: cygwin-xfree; +Cc: cygwin
On Sun, 22 Feb 2004, Joshua Daniel Franklin wrote:
> On Wed, Feb 18, 2004 at 06:11:57PM -0500, Igor Pechtchanski wrote:
> > On Wed, 18 Feb 2004, Jeffrey J. Gray wrote:
> >
> > > [snip]
> > > ... and I'm running .... hm, not sure how to check my Cygwin version,
> > > it's probably ~4 months old .... on WinXP.
> >
> > Jeff,
> >
> > Just like on any Unix system, "uname -srv" will return the kernel (in
> > Cygwin's case, cygwin1.dll) version. On Cygwin, you can also use
> > "cygcheck -srv" to get detailed information about your system (essential
> > for diagnosing Cygwin problems, see <http://cygwin.com/problems.html>), or
> > "cygcheck -cd" to just get the versions of all installed packages (or omit
> > the "-d" flag to also check them for integrity). If you post the output
> > of either "cygcheck -srv" or "cygcheck -cd", please *attach* it to your
> > message, rather than including it inline.
>
> Or, since all he wanted was the Cygwin version, just "uname -r" or
> "cygcheck -cd cygwin" would work fine. :)
>
> > P.S. I was surprised that this isn't in the FAQ. David, could you please
> > add this, under the heading "What version of Cygwin do I have?" or
> > something? Oh, and BTW, there's a "What version is this, anyway?" entry
> > that has nothing to do with this question, and is pretty confusing.
>
> Since David is still AWOL, I guess I've taken over FAQ maintainence too.
> I rewrote most of the "What version is this, anyway?" entry, removing
> all the references to the 'recent' (2000 April) switch to setup.exe,
> and noting the difference between Cygwin the package and Cygwin the system.
> You can read it at:
>
> <http://cygwin.com/faq/faq_1.html#SEC5>
Looks good, thanks.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: map side mouse button to button 2?
2004-02-21 0:11 ` map side mouse button " Jeffrey J. Gray
2004-02-21 6:13 ` Igor Pechtchanski
@ 2004-02-24 0:01 ` Takuma Murakami
1 sibling, 0 replies; 12+ messages in thread
From: Takuma Murakami @ 2004-02-24 0:01 UTC (permalink / raw)
To: cygwin-xfree
Jeffrey,
Try to map 'autoscroll' for your favorite side button via
IntelliPoint software. Since then the side button should work
as button2. Like this approach you could freely remap mouse
buttons on the Windows layer. Since IntelliPoint provides
per-application remapping, the configuration for XWin.exe
will not affect other Windows programs.
Takuma Murakami
> Thanks everyone for the help. I upgraded my cygwin build to a Jan30
> version, so xmodmap works and can mix around the button functions.
> However, in xev, buttons '4' and '5' indeed (as someone posted earlier
> today) correspond to the wheel motions, not to the buttons on the side
> of my mouse. These buttons produce nothing xev -- so will it ever be
> possible to use these buttons in cygwin-xfree?
>
> Harold, your solution worked, setting the middle button to autoscroll
> recovers the usual paste function.
>
> The current solution is suboptimal--I still dislike using the wheel
> button so regularly, and it seems a shame to waste the perfectly good
> side buttons on the mouse. If anyone comes up with better solutions,
> please let me know. For now at least everything works.
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-02-23 16:21 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 22:05 map mouse button 4 or 5 to button 2? Jeffrey J. Gray
2004-02-18 23:12 ` Chad Haynes
2004-02-18 23:31 ` Checking Cygwin version (FAQ Alert!) (Was Re: map mouse button 4 or 5 to button 2?) Igor Pechtchanski
2004-02-23 0:42 ` Joshua Daniel Franklin
2004-02-23 3:36 ` Checking Cygwin version (FAQ Alert!) Igor Pechtchanski
2004-02-19 9:00 ` map mouse button 4 or 5 to button 2? Takuma Murakami
2004-02-19 9:21 ` J S
2004-02-19 11:00 ` Takuma Murakami
2004-02-19 22:02 ` Harold L Hunt II
2004-02-21 0:11 ` map side mouse button " Jeffrey J. Gray
2004-02-21 6:13 ` Igor Pechtchanski
2004-02-24 0:01 ` Takuma Murakami
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).