RE: EU_ENGINE's get_mouse()
jbrown105 at HotPOP.com wrote:
>
> --envbJBWh7q8WU6mo
> Content-Type: text/plain; charset=us-ascii
>
> Why does Bernie have such an odd version of get_mouse()?
> You have to check to see if the mouse moved manually as well as if
> the mouse changed at all. I have included sample code which should
> support a more normal get_mouse() (insert the code into eu_engin.e,
> and rename the old get_mouse() into old_getmouse(), and rename
> pget_mouse()
> into get_mouse()).
>
> jbrown
The code was written that way to be as completely as possible
compatible to DOS euphoria so that you could run a DOS Euphoria
program without breaking or changing the code.
Linux Euphoria's graphic.e uses gm mouse; try using that in
graphics mode, in fact try using any of the DOS graphics functions
in Linux Euphoria's graphic.e they don't exist.
As you can see that with the library you can write your own code
using vga graphics with no problems.
Did you try running Jiri's WIDGETS that were written in DOS ?
If you look at the routines that I modified in
the EU_ENGINE's WIDGET directory at widget.e you will see I had
to modify his mouse routines to run with the library.
If you rename pget_mouse() to get_mouse() then your get_mouse()
will just recursively
Bernie
|
Not Categorized, Please Help
|
|