mirror of https://github.com/MidnightCommander/mc
* mouse.h: Define events for the mouse wheel.
* key.c (xmouse_get_event): Recognize mouse wheel events.
This commit is contained in:
parent
1b3b7b70b9
commit
dad4215705
|
@ -1,5 +1,8 @@
|
||||||
2002-09-20 Pavel Roskin <proski@gnu.org>
|
2002-09-20 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* mouse.h: Define events for the mouse wheel.
|
||||||
|
* key.c (xmouse_get_event): Recognize mouse wheel events.
|
||||||
|
|
||||||
* command.c: (command_insert): New function - insert quoted
|
* command.c: (command_insert): New function - insert quoted
|
||||||
text into the command line.
|
text into the command line.
|
||||||
* main.c: Use command_insert() instead of stuff(). This ensures
|
* main.c: Use command_insert() instead of stuff(). This ensures
|
||||||
|
|
|
@ -324,6 +324,12 @@ xmouse_get_event (Gpm_Event *ev)
|
||||||
case 2:
|
case 2:
|
||||||
ev->buttons = GPM_B_RIGHT;
|
ev->buttons = GPM_B_RIGHT;
|
||||||
break;
|
break;
|
||||||
|
case 64:
|
||||||
|
ev->buttons = GPM_B_UP;
|
||||||
|
break;
|
||||||
|
case 65:
|
||||||
|
ev->buttons = GPM_B_DOWN;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
/* Nothing */
|
/* Nothing */
|
||||||
ev->type = 0;
|
ev->type = 0;
|
||||||
|
|
|
@ -73,6 +73,10 @@ void disable_mouse (void);
|
||||||
#define MOU_ENDLOOP 0x02
|
#define MOU_ENDLOOP 0x02
|
||||||
#define MOU_LOCK 0x04
|
#define MOU_LOCK 0x04
|
||||||
|
|
||||||
|
/* Mouse wheel events. GPM doesn't seem to support them yet. */
|
||||||
|
#define GPM_B_UP 8
|
||||||
|
#define GPM_B_DOWN 16
|
||||||
|
|
||||||
#ifdef HAVE_LIBGPM
|
#ifdef HAVE_LIBGPM
|
||||||
|
|
||||||
/* GPM specific mouse support definitions */
|
/* GPM specific mouse support definitions */
|
||||||
|
|
Loading…
Reference in New Issue