mouse_left, update problem

Posted By: Damocles

mouse_left, update problem - 01/19/08 17:40

in A6, (not tested in A7)

the flag "mouse_left"
is kept on, when the mouse is beeing pressed, and the user leaves the screen
in window mode (leaving with the mousecursor to the desktop).
When entering the window again, the flag is still set to on, even
when the mouse is not pressed.

This is probably caused, since there is no syste message reaching acknex, when the window is
not on focus.

When exiting the window with the mouse, the flag should be set to off.

This way, a not existing condition (mouse pressed) is not set to true.
Posted By: jcl

Re: mouse_left, update problem - 01/21/08 07:34

I've just tried it and it seems not to happen with the current version. The window does not need to be in focus for system messages.

If you don't have A7, please check it with the trial version and your project. Does it then still happen?
Posted By: Damocles

Re: mouse_left, update problem - 01/21/08 22:19

The bug is not in A7, as I saw from a test.

But it is in A6.6
Posted By: jcl

Re: mouse_left, update problem - 01/22/08 08:21

A7 uses a different mouse code than A6. The problem is not mentioned on the bug list. I guess it was an A6 bug that no one encountered during A6's lifetime.

A6 is not developed anymore, so the only solution is fixing it by software. Buffer mouse_left to a variable, check mouse_valid and reset the variable when mouse_valid is 0.
Posted By: Damocles

Re: mouse_left, update problem - 01/22/08 08:46

Ok, thanks.
Mouse_valid can be used as flag for
crafting a workaround.
© 2024 lite-C Forums