|
From: Benjamin L. <lin...@gm...> - 2009-12-13 17:57:37
|
Tatsuro MATSUOKA wrote:
> Hello
>
>
> Perhaps to overcome the issue of the 'pause mouse' in gnuplot.exe on windows , win.trm should be
> modified,
>
> ***********************************************
> #ifdef WGP_CONSOLE
>
> TERM_PUBLIC int
> WIN_waitforinput ()
> {
> return ConsoleGetch();
> }
>
> #endif /* WGP_CONSOLE */
> **********************************************
> This only waits for keybord input.
Not really. It also waits for mouse input.
That's the reason (I suspect) that the function is written the
way it is written. It processes mouse events in the else clause
else if (waitResult == WAIT_OBJECT_0+1)
{
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
because otherwise you would not be able to zoom.
However it does not return on mouse input.
I don't know if it should do so?
benjamin
|