1. Mouse in text mode
- Posted by pmosley at infoway.lib.nm.us Jun 26, 2001
- 467 views
Hi I am working on using a mouse in text mode,but I have a problem in the Lib doc rob says to scale down the cord for the get_mouse routine,but how do you do this???????? I have looked at other people's work and still can not figure it out can ay one help please.Thanks Now for some input in to what could be done in Euphoria 1) some better help whould be nice,the lib doc file that comes with EUPHORIA is not easy for beginners to understand it takes me about 5 6 hours to figure out what to do with 1 command.Examples could be better too. 2) a better part and some more programs on sequence's and how to use them I started to understand EUPHORIA when I finnally figured out how to slice a seq and make a 1 dim 2 dim 3 dim sequence and then how to get one pice out of all that. Well thats about all that I have now thanks David P.S. I have started to get it now I have written about 4 programs now.
2. Re: Mouse in text mode
- Posted by Irv Mullins <irvm at ellijay.com> Jun 26, 2001
- 421 views
On Tuesday 26 June 2001 14:55, pmosley at infoway.lib.nm.us wrote: > Hi > I am working on using a mouse in text mode,but I have a problem in the > Lib doc rob says to scale down the cord for the get_mouse routine,but > how do you do this???????? I believe the mouse returns the x and y position in pixels. Each character on the DOS text screen is 8 pixels wide, so if the mouse sez you are at pixel 320, for example, you divide that by 8 and get 40, which would be the 40th. character on the line. Same thing applies for the vertical, except the characters are taller than they are wide, and you have to account for the pixels between lines, as well. Maybe divide by 16? Regards, Irv
3. Re: Mouse in text mode
- Posted by daryl_vdb at HOTMAIL.COM Jun 26, 2001
- 434 views
This is a multi-part message in MIME format. ------=_NextPart_000_59a9_5d82_160c I have attatched a small prog that should help. simply move the mouse and read the sequence returned by get_mouse (4th line down, "mouse event: {,,}") you can also see the result in different text modes. I think you divide both x and y by 8 I hope that helps Daryl van den Brink >On Tuesday 26 June 2001 14:55, pmosley at infoway.lib.nm.us wrote: > > > Hi > > I am working on using a mouse in text mode,but I have a problem in the > > Lib doc rob says to scale down the cord for the get_mouse routine,but > > how do you do this???????? > >I believe the mouse returns the x and y position in pixels. Each character >on >the DOS text screen is 8 pixels wide, so if the mouse sez you are at pixel >320, for example, you divide that by 8 and get 40, which would be the 40th. >character on the line. Same thing applies for the vertical, except the >characters are taller than they are wide, and you have to account for the >pixels between lines, as well. Maybe divide by 16? > >Regards, >Irv ------=_NextPart_000_59a9_5d82_160c Content-Type: text/plain; name="Textscr.ex"; format=flowed Content-Transfer-Encoding: 8bit