Commit Graph

6 Commits

Author SHA1 Message Date
Pavel Roskin 04f460d565 * mouse.h: Use definitions for GPM_B_DOWN and GPM_B_UP
compatible with gpm-1.20.
Reported by by David Martin <dmartina@excite.com>
2002-10-30 20:52:59 +00:00
Pavel Roskin 774b97e94c * mouse.h: Put return codes from the mouse callback to an enum.
Remove MOU_ENDLOOP and MOU_LOCK - they are interpreted like
MOU_NORMAL.  Adjust all dependencies.
* dlg.c: Use MOU_NORMAL instead of 0 for mouse_status.
2002-09-22 05:49:17 +00:00
Pavel Roskin dad4215705 * mouse.h: Define events for the mouse wheel.
* key.c (xmouse_get_event): Recognize mouse wheel events.
2002-09-21 00:11:59 +00:00
Pavel Roskin 34947b1819 * mouse.h: Major cleanup and interface change. init_mouse()
should only be called once, disable_mouse() and enable_mouse()
should be used later.  Distinguish between disabled and
undetected mouse.  Remove debugging stuff.  Adjust all users.
* mouse.c: Implementation of the above.
* key.c: Don't use gpm_flag - check mouse_enabled instead.
2001-09-17 04:43:58 +00:00
Pavel Roskin 3051dba20b * mouse.h: Export xmouse_seq.
* mouse.c (init_mouse): Use xmouse_seq instead of hardcoded
xterm mouse sequence.
* main.c (setup_post): Join with setup_mc().
(init_xterm_support): New function.  Check mouse capability.
(OS_Setup): Remove parts that are now in init_xterm_support().
2001-09-15 16:54:40 +00:00
Miguel de Icaza eb6b3842ab Initial revision 1998-02-27 04:54:42 +00:00