diff options
author | Bert Münnich <ber.t@posteo.de> | 2017-10-05 13:53:29 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@posteo.de> | 2017-10-06 10:15:43 +0200 |
commit | 8081cbebf36e48297a589af02db400687c4ef261 (patch) | |
tree | 9740972bf4c7684fe80acc291915f2a3aa8060d5 /commands.c | |
parent | ee908ca0a197ac579ab8abc5695c9ce421a96a21 (diff) | |
download | nsxiv-8081cbebf36e48297a589af02db400687c4ef261.tar.zst |
Improve mouse support
None of the mouse mappings uses a keyboard modifier, making it possible to
access the most basic features by only using the mouse.
Next/previous image with left button depending on cursor position, middle
button for dragging, right button for switching to thumnail mode and wheel for
zooming.
Users can keep the old behaviour by simply not adapting the changes to the
buttons array in config.def.h to their config.h file.
Diffstat (limited to 'commands.c')
-rw-r--r-- | commands.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -33,6 +33,7 @@ void remove_file(int, bool); void load_image(int); void open_info(void); +int ptr_third_x(void); void redraw(void); void reset_cursor(void); void animate(void); @@ -281,6 +282,11 @@ bool ci_navigate(arg_t n) } } +bool ci_cursor_navigate(arg_t _) +{ + return ci_navigate(ptr_third_x() - 1); +} + bool ci_alternate(arg_t _) { load_image(alternate); |