* mouse.h: Define events for the mouse wheel.

* key.c (xmouse_get_event): Recognize mouse wheel events.
This commit is contained in:
Pavel Roskin 2002-09-21 00:11:59 +00:00
parent 1b3b7b70b9
commit dad4215705
3 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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
text into the command line.
* main.c: Use command_insert() instead of stuff(). This ensures

View File

@ -324,6 +324,12 @@ xmouse_get_event (Gpm_Event *ev)
case 2:
ev->buttons = GPM_B_RIGHT;
break;
case 64:
ev->buttons = GPM_B_UP;
break;
case 65:
ev->buttons = GPM_B_DOWN;
break;
default:
/* Nothing */
ev->type = 0;

View File

@ -73,6 +73,10 @@ void disable_mouse (void);
#define MOU_ENDLOOP 0x02
#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
/* GPM specific mouse support definitions */