nsxiv7a74fae
Use integers for mouse mappings and buttons 6+7 for horizontal scrolling
Fixes issue #143
+12 −10
2 files changed
- M Makefile +1 −1
- M config.def.h +11 −9
| @@ -1,4 +1,4 @@ | |||
| 1 | − | VERSION = git-20140525 | |
| 1 | + | VERSION = git-20140531 | |
| 2 | 2 | ||
| 3 | 3 | PREFIX = /usr/local | |
| 4 | 4 | MANPREFIX = $(PREFIX)/share/man | |
| @@ -152,15 +152,17 @@ static const keymap_t keys[] = { | |||
| 152 | 152 | /* mouse button mappings for image mode: */ | |
| 153 | 153 | static const button_t buttons[] = { | |
| 154 | 154 | /* 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 }, | |
| 164 | 166 | }; | |
| 165 | 167 | ||
| 166 | 168 | #endif | |