[Coco] Webpage Update - Hires Mouse

Bill Pierce ooogalapasooo at aol.com
Thu Oct 29 14:47:08 EDT 2015


Barry, that would be the ultimate goal. I really see no need for the original driver if the new one returns the same values.
On the original mouse driver (no hires), the driver reads the standard 64x64 resolution, then multiplies by 10 & 3 for 640x192. That's the values initially stored. Then the current window scales those values to fit the window... even text windows! as the mouse can be used on a text window, just no one ever wrote a cursor routine for it (yet).

 

 


Bill Pierce
"Charlie stole the handle, and the train it won't stop going, no way to slow down!" - Ian Anderson - Jethro Tull

 

My Music from the Tandy/Radio Shack Color Computer 2 & 3
https://sites.google.com/site/dabarnstudio/
Co-Contributor, Co-Editor for CocoPedia
http://www.cocopedia.com/wiki/index.php/Main_Page
Global Moderator for TRS-80/Tandy Color Computer Forums
http://www.tandycoco.com/forum/

E-Mail: ooogalapasooo at aol.com


 

 

-----Original Message-----
From: Barry Nelson <barry.nelson at amobiledevice.com>
To: coco <coco at maltedmedia.com>
Sent: Thu, Oct 29, 2015 1:46 pm
Subject: Re: [Coco] Webpage Update - Hires Mouse


Ok, as I understand it, the following is true…
The new hires mouse driver works
with standard mice and joysticks. No special hardware is required.
The OS-9
mouse values are always scaled to the current screen resolution.
So…
Why not use
the new driver by default instead of the current one to read the mouse/joystick,
with an option to switch to the hardware hires driver that uses the cassette
port, and just get rid of the old standard driver altogether? Since the output
vales are scaled, existing programs would still receive the same expected range
of values, just with greater precision.

> Bill Pierce ooogalapasooo at aol.com

> Thu Oct 29 12:50:37 EDT 2015
> 
> Thanks John, that's about what I had
determined in looking at the code and comparing it to the existing OS9 driver.
>
I think the addition could be added fairly easy, I'm just not sure in what
module the code would be found to activate it.
> I know it's done through the
SetStat function, but I don't know which module handles this particular function
to activate the hires or normal mouse modes. In this code is where the addition
would have to be to add the new option.
> To change modes, you copy the mouse
packet to user memory with a getstat call, change the Pt.Res value, then use
setstat to return it to system. From that point, all mouse reads will use that
flag to determine which mode to use.
> The joyport drive is easily changed to
redirect the program flow to the new mode as after it inits the ports, it check
Pt.Res and jumps to the proper code based on the value there, but I'm sure
there's a failsafe where ever that setstat falls to eliminate invalid values..
that's where the new value for the new mode would be added. If not, then it's
even easier :-)
> You just add another conditional branch at the point it
branches to lores or hires.
> 
>  
> 
>  
> 
> 
> Bill Pierce
> "Charlie stole
the handle, and the train it won't stop going, no way to slow down!" - Ian
Anderson - Jethro Tull
> 
>  
> 
> My Music from the Tandy/Radio Shack Color
Computer 2 & 3
> https://sites.google.com/site/dabarnstudio/
> Co-Contributor,
Co-Editor for CocoPedia
> http://www.cocopedia.com/wiki/index.php/Main_Page
>
Global Moderator for TRS-80/Tandy Color Computer Forums
>
http://www.tandycoco.com/forum/
> 
> E-Mail: ooogalapasooo at aol.com


-- 
Coco
mailing
list
Coco at maltedmedia.com
https://pairlist5.pair.net/mailman/listinfo/coco

 


More information about the Coco mailing list