1. Some basic stuff

I'm new to programming, so bear with me.

Okay, I'm trying to get some simple demos to work. The one I'm currently
working on
involves using the mouse to click on drawn boxes to get different effects.
However,
a problem I found is with the get_mouse() function. It returns the actions
and Y-axis
of the mouse correctly, but the X-axis is twice as much as it should be. I
solved
this easily enough, but I'm curious as to what's wrong.

By the way, Jacques Deschene, thanks for the Sound Blaster code. Good work.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=
The Reaper                                    |||||||||||
reaper at auracom.com                            $  @   @  $
"This is not a quote."                         \   !   /
Or is it?                                       \=====/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-

(yes, the signature does need work...)

new topic     » topic index » view message » categorize

2. Re: Some basic stuff

> However, a problem I found is with the get_mouse() function. It returns
the actions
> and Y-axis of the mouse correctly, but the X-axis is twice as much as it
should be.
> solved this easily enough, but I'm curious as to what's wrong.

I'm curious too. I've used get_mouse() in the "A Beginner's Guide To
Euphoria"
tutorial and I have not seen any evidence that the x axis co-ordinate is
double
what it should be. For example, if I click my mouse at pixel location
320,200 in
graphics mode 18 (where x is 320 and y is 200), I get back 320,200 as the
pixel co-ordinate pair. What screen mode do your demos run in?

Thanks

David Gay

new topic     » goto parent     » topic index » view message » categorize

3. Re: Some basic stuff

At 04:43  10/01/97 -0500, you wrote:
>I'm curious too. I've used get_mouse() in the "A Beginner's Guide To
>Euphoria"
>tutorial and I have not seen any evidence that the x axis co-ordinate is
>double
>what it should be. For example, if I click my mouse at pixel location
>320,200 in
>graphics mode 18 (where x is 320 and y is 200), I get back 320,200 as the
>pixel co-ordinate pair. What screen mode do your demos run in?
>
>Thanks
>
>David Gay
>

I have yet to try more demos (by 'demos' I mean little test programs), but
the mode I was using for the mouse demo was Mode 13 (320x200x16). Also, I
had Jacques Duschene's (pardon the spelling) Sound Blaster source code loaded
in, if that makes any difference.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-=-=-=-=
The Reaper                                    |||||||||||
reaper at auracom.com                            $  @   @  $
"This is not a quote."                         \   !   /
Or is it?                                       \=====/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=-=-=-

(yes, the signature does need work...)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu