1. Mouse in SVGA
How do you use the mouse in SVGA modes? I'm making a game in mode 259
(800x600x256), and it really needs mouse support. If it helps, it can easily
be converted to mode 257 (640x480x256).
Thanks in advance.
Abraham Harte - DHarte at aol.com
2. Re: Mouse in SVGA
Hi Abraham,
I wrote a simple SVGA mouse routine that works on any resolution, its on
the RDS webpage archive.
Regards - Peter
3. Mouse in SVGA
I just ran Irv's dosGUI - demo (nice work, BTW!) and found that the mouse
worked nicely (nothing wrong in that alone...). The problem is that I use
Jiri's SVGA mouse routines in my leveleditor, and when I use mode 256 with
VESA it moves in larger steps than it should. Irv's demo uses the exact same
screenconfig, so I am puzzled here. Any ideas?
(PS: I send this message to one address, and it gets back with another
address on it. Will both these addresses be permanent?)
Einar Mogen
Slimesoft
E-mail: nord.staernes at rollag.mail.telia.com
URL: http://w1.2327.telia.com/~u232700028/euphoria.html
4. Re: Mouse in SVGA
At 09:57 AM 5/23/98 +0200, you wrote:
>I just ran Irv's dosGUI - demo (nice work, BTW!) and found that the mouse
>worked nicely (nothing wrong in that alone...). The problem is that I use
>Jiri's SVGA mouse routines in my leveleditor, and when I use mode 256 with
>VESA it moves in larger steps than it should. Irv's demo uses the exact same
>screenconfig, so I am puzzled here. Any ideas?
>
>(PS: I send this message to one address, and it gets back with another
>address on it. Will both these addresses be permanent?)
>
>Einar Mogen
I don't know anything about Irv's prog, but I
was on-line when this one came in, so ...
*Could* be that thing where the X values get
doubled in some modes.
Try putting:
ev=floor(ev/2)&ev[2..3]
where ev is your mouse events return sequence.
check that it's not an atom first.
Graeme.
----------------------------------------------------
5. Re: Mouse in SVGA
>Try putting:
>
>ev=floor(ev/2)&ev[2..3]
>
>where ev is your mouse events return sequence.
Oops, that should have been:
ev=ev[1]&floor(ev[2]/2)&ev[3]
You may not even need the floor()
Graeme.
----------------------------------------------------
6. Re: Mouse in SVGA
>*Could* be that thing where the X values get
>doubled in some modes.
Thanx for the suggestion, but no it's not.
(Now I will ask a favor: does anyone want to draw a new explosion for my
game. It should be somewhat like the one I allready use (25*25 pixels, 21
frames). I've tried, but I can't make anything good. The reason is that this
explosion was lifted from DukeNukem3D, and although I think they've given
their permission to use the graphics in non-commercial stuff, it would be
better to use something not everybody had seen before.)
Einar Mogen