Krolyxon
Commit 7a74fae

Branches

Refs →

nsxiv7a74fae

Use integers for mouse mappings and buttons 6+7 for horizontal scrolling

Fixes issue #143
Author
Bert Münnich
Date
2014-05-31 10:59 +0200
Committer
Bert Münnich · 2014-05-31 10:59 +0200
Parent
4cbc734
Commit
7a74fae56a800e10fd34cd1e172b040e2a41f61d

+12 −10

2 files changed

  1. M Makefile +1 −1
  2. M config.def.h +11 −9
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140525
1+VERSION = git-20140531
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M config.def.h View
@@ -152,15 +152,17 @@ static const keymap_t keys[] = {
152152 /* mouse button mappings for image mode: */
153153 static const button_t buttons[] = {
154154 /* modifiers button function argument */
155− { 0, Button1, i_navigate, (arg_t) +1 },
156− { 0, Button3, i_navigate, (arg_t) -1 },
157− { 0, Button2, i_drag, (arg_t) None },
158− { 0, Button4, it_scroll_move, (arg_t) DIR_UP },
159− { 0, Button5, it_scroll_move, (arg_t) DIR_DOWN },
160− { ShiftMask, Button4, it_scroll_move, (arg_t) DIR_LEFT },
161− { ShiftMask, Button5, it_scroll_move, (arg_t) DIR_RIGHT },
162− { ControlMask, Button4, i_zoom, (arg_t) +1 },
163− { ControlMask, Button5, i_zoom, (arg_t) -1 },
155+ { 0, 1, i_navigate, (arg_t) +1 },
156+ { 0, 3, i_navigate, (arg_t) -1 },
157+ { 0, 2, i_drag, (arg_t) None },
158+ { 0, 4, it_scroll_move, (arg_t) DIR_UP },
159+ { 0, 5, it_scroll_move, (arg_t) DIR_DOWN },
160+ { ShiftMask, 4, it_scroll_move, (arg_t) DIR_LEFT },
161+ { ShiftMask, 5, it_scroll_move, (arg_t) DIR_RIGHT },
162+ { 0, 6, it_scroll_move, (arg_t) DIR_LEFT },
163+ { 0, 7, it_scroll_move, (arg_t) DIR_RIGHT },
164+ { ControlMask, 4, i_zoom, (arg_t) +1 },
165+ { ControlMask, 5, i_zoom, (arg_t) -1 },
164166 };
165167
166168 #endif