]> granicus.if.org Git - nethack/commit
curses mouse right-click
authorPatR <rankin@nethack.org>
Thu, 27 Jun 2019 22:02:49 +0000 (15:02 -0700)
committerPatR <rankin@nethack.org>
Thu, 27 Jun 2019 22:02:49 +0000 (15:02 -0700)
commit56387dccb6f4865e083ebe2b1375e315655a5b7e
tree105d845862ca2174afaaafdfb96c333b2ee7f83b
parentaada9e270652489d0fa7b08e341489bc16cfca91
curses mouse right-click

Right button is button3 rather than button2.  Accept either and treat
both as "not left" to pass CLICK_2 back to the core.

Treat <Ctrl>+left-click as "not left" too, to simplify usage with Mac
one-button mouse (where <Ctrl>+left-click can be configured to send
"secondary click" but might not be set do so) or one-button laptop
trackpad (where having two fingers on the scrolling portion of the pad
while clicking the button is necessary to send "secondary click").
win/curses/cursinit.c
win/curses/cursmisc.c