Browse Source

deactivate mouse by default, #define ORCA_USES_MOUSE 1 for activate

master
Nicola Pisanti 6 years ago
parent
commit
7f06b5f830
  1. 4
      tui_main.c

4
tui_main.c

@ -22,6 +22,8 @@
static int spin_track_timeout = 0; static int spin_track_timeout = 0;
#endif #endif
#define ORCA_USES_MOUSE 0
static void usage(void) { static void usage(void) {
// clang-format off // clang-format off
fprintf(stderr, fprintf(stderr,
@ -2270,6 +2272,7 @@ int main(int argc, char** argv) {
} }
goto next_getch; goto next_getch;
} }
#if ORCA_USES_MOUSE
case KEY_MOUSE: { case KEY_MOUSE: {
MEVENT mevent; MEVENT mevent;
if (cont_window && getmouse(&mevent) == OK) { if (cont_window && getmouse(&mevent) == OK) {
@ -2291,6 +2294,7 @@ int main(int argc, char** argv) {
} }
goto next_getch; goto next_getch;
} }
#endif
case CTRL_PLUS('q'): case CTRL_PLUS('q'):
goto quit; goto quit;
} }

Loading…
Cancel
Save