In article <86g24h$19d7$1@bigeye.rhein-neckar.de>,
Christian Weisgerber <w3m-dev-en@mi.med.tohoku.ac.jp> writes:
> I wrote:
>
> > In what contexts is mouse_end() called?
>
> Juergen Lock just pointed me to the MOUSE_TOGGLE function, msToggle().
> Shouldn't this in fact enable/disable the mouse?
In the current version, mouse is activated before key input and
deactivated after input immediately (around l.516 main.c). msToggle()
merely toggles use_mouse flag. You have no need to activate/
deactivate mouse in msToggle() function.
> BTW, what is the difference between
> mouse_init() <-> mouse_active()
> mouse_end() <-> mouse_inactive()
> intended to be?
mouse_init() initializes entire mouse system. When GPM is on,
mouse_init() establishes a connection to the GPM server. In any
other environment, mouse_init() does nothing.
mouse_end() shuts the mouse system down.
mouse_active() and mouse_inactive() activates/deactivates mouse.
The usage of these functions are:
/* beginning of the program */
mouse_init();
for (;;) {
....
/* activate mouse */
mouse_active();
...
/* deactivate mouse */
mouse_inactive();
...
}
/* end of the program */
mouse_end();
-- Akinori Ito tel&fax: 0238-26-3369 E-mail: aito@eie.yz.yamagata-u.ac.jp
This archive was generated by hypermail 2b29 : Wed Jul 19 2000 - 10:30:43 CDT