From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: hw Newsgroups: gmane.emacs.help Subject: Re: query: remapping a mouse press Date: Sun, 26 Aug 2018 20:10:14 +0200 Organization: my virtual residence Message-ID: <875zzx2e49.fsf@himinbjorg.adminart.net> References: <87lg8wg5qi.fsf@nyu.edu> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1535316688 9120 195.159.176.226 (26 Aug 2018 20:51:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Aug 2018 20:51:28 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 26 22:51:24 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fu20I-0002Fr-Nf for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 22:51:22 +0200 Original-Received: from localhost ([::1]:50363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu22O-0004gm-Nb for geh-help-gnu-emacs@m.gmane.org; Sun, 26 Aug 2018 16:53:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36718) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fu00L-0003uz-5A for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:43:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ftzmj-00067e-7Y for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:29:14 -0400 Original-Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::5]:20666) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ftzmi-00066h-N7 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 14:29:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1535308151; s=strato-dkim-0002; d=adminart.net; h=Sender:References:Message-ID:Date:In-Reply-To:Subject:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=N2YHony7lOJZK7+hOZ0RCVFP6AHUC+xV/nWX+CLb7s8=; b=On1VHDduYFl9LwU8frrGdgKfzsTJrPHMrgnYDlHGw7fDKn8uC5/G0IKDl9W8MDaEt8 Gy0cu9L+nfqoGGrTakB6n4ucCeyR3pwclLX+/b2xFdcVte+UMYuEzK5G1mTdbncGo2N2 pyHxPo3lVTTU+f5L4NDdOUcdyaifUOW6XXUQju+4xQpCLNU0cOFB0GdAYRCqPMA9HVmM 3TomHTE1+eoXGnMsWda+1FOgppIg1QsjY/0sZ0Z26gOEgwRDh3KPLdzzvT5La0wRy3OS ZhQS+lbznWxt5nurxNAGCoKMW+oAuRoq4ZMJi/X9Hey9YmQ1EJlKXtoXuilMJokDB9Em mC+A== X-RZG-AUTH: ":O2kGeEG7b/pS1FS4THaxjVF9w0vVgfQ9xGcjwO5WMRo5c+h5ceMqQWZ3yrBp+AVdIIwXjneEe9k=" X-RZG-CLASS-ID: mo00 Original-Received: from lee by himinbjorg.adminart.net with local (Exim 4.90_1) (envelope-from ) id 1ftzmg-0000eL-36 for help-gnu-emacs@gnu.org; Sun, 26 Aug 2018 20:29:10 +0200 In-Reply-To: <87lg8wg5qi.fsf@nyu.edu> (allan gottlieb's message of "Thu, 23 Aug 2018 16:58:29 -0400") Mail-Followup-To: help-gnu-emacs@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::5 X-Mailman-Approved-At: Sun, 26 Aug 2018 16:52:33 -0400 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117756 Archived-At: allan gottlieb writes: > I am having trouble enabling mouse-wheel-tilt-scroll > > Currently I have > > mouse-wheel-tilt-scroll is a variable defined in `mwheel.el'. > Its value is t > Original value was nil > > Possibly it is because my logitech mouse has many buttons and tilting > the wheel generates mouse-6 and mouse-7, which are bound to scroll-down > and scroll-up. I want to bind mouse-6 to scroll-left and tried several > variations on > > (define-key global-map 'scroll-left) > > but with no success. > > Any help would be appreciated. FWIW: You can use xinput to configure which physical button on a mouse (or trackball, in this example) is being mapped to which logical button like so: xinput set-button-map "Kensington Kensington Slimblade Trackball" 2 1 3 4 5 6 7 8 9 10 11 12 xinput --set-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation" 1 xinput --set-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Button" 3 xinput --set-prop "Kensington Kensington Slimblade Trackball" "Evdev Wheel Emulation Axes" 6, 7, 4, 5 This example is for when you use the trackball with your left hand. (Don't buy that Kensington, it sucks.) In case you have a Trackman Marble FX that still works: # set which button to use for wheel emulation (right button) # xinput -set-prop "PS2++ Logitech TrackMan" "Evdev Wheel Emulation Button" 3 # enable the wheel emulation # xinput -set-prop "PS2++ Logitech TrackMan" "Evdev Wheel Emulation" 1