Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.apple2.programmer > #5008 > unrolled thread

Apple //e mouse API v Apple IIGS

Started bypaul.s.macmillan@gmail.com
First post2019-02-12 11:56 -0800
Last post2019-02-14 23:15 -0600
Articles 6 — 4 participants

Back to article view | Back to comp.sys.apple2.programmer


Contents

  Apple //e mouse API v Apple IIGS paul.s.macmillan@gmail.com - 2019-02-12 11:56 -0800
    Re: Apple //e mouse API v Apple IIGS gids.rs@sasktel.net - 2019-02-14 09:18 -0800
      Re: Apple //e mouse API v Apple IIGS paul.s.macmillan@gmail.com - 2019-02-14 10:58 -0800
        Re: Apple //e mouse API v Apple IIGS gids.rs@sasktel.net - 2019-02-14 11:49 -0800
          Re: Apple //e mouse API v Apple IIGS Antoine Vignau <antoine.vignau@laposte.net> - 2019-02-14 12:23 -0800
        Re: Apple //e mouse API v Apple IIGS Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2019-02-14 23:15 -0600

#5008 — Apple //e mouse API v Apple IIGS

Frompaul.s.macmillan@gmail.com
Date2019-02-12 11:56 -0800
SubjectApple //e mouse API v Apple IIGS
Message-ID<96b974b1-2cd9-47e4-8100-af31e14bf066@googlegroups.com>
I am writing a game in Applesoft with a small mouse driver in assembly language. The mouse calls are very simple -- I use passive model; INITMOUSE, SETMOUSE, CLAMPMOUSE and READMOUSE. The game is in 40-column text and I clamp the mouse to 1-40 in X direction and 1-24 in Y direction. 

On the //e and //c all is good. The mouse action across the screen is smooth and easily controlled -- the x values range in an orderly way from 1 to 40 as I move the physical mouse a few inches.

On the IIGS... not so much. Its as if after the clamp, the physical mouse only moves an inch or less to cover the whole 1-40 range. It moves so fast it seems to jump.  Game action is terrible (slowing down to 1 MHz is no help).

I also get readings outside of the clamped range occasionally but I suspect I can handle those more gracefully in the Applessoft.

Is there an easy to make the IIGS clamping act like the IIe/IIc clamping? The firmware mouse API calls look exactly the same in the IIGS compared to the Apple I Mouse card (at least in passive mode which is all I am using)

thanks,
Paul

  

[toc] | [next] | [standalone]


#5009

Fromgids.rs@sasktel.net
Date2019-02-14 09:18 -0800
Message-ID<23a6cd14-a965-47e3-b08e-da9a980d0f69@googlegroups.com>
In reply to#5008
On Tuesday, February 12, 2019 at 1:56:48 PM UTC-6, paul.s.m...@gmail.com wrote:
> I am writing a game in Applesoft with a small mouse driver in assembly language. The mouse calls are very simple -- I use passive model; INITMOUSE, SETMOUSE, CLAMPMOUSE and READMOUSE. The game is in 40-column text and I clamp the mouse to 1-40 in X direction and 1-24 in Y direction. 
> 
> On the //e and //c all is good. The mouse action across the screen is smooth and easily controlled -- the x values range in an orderly way from 1 to 40 as I move the physical mouse a few inches.
> 
> On the IIGS... not so much. Its as if after the clamp, the physical mouse only moves an inch or less to cover the whole 1-40 range. It moves so fast it seems to jump.  Game action is terrible (slowing down to 1 MHz is no help).
> 
> I also get readings outside of the clamped range occasionally but I suspect I can handle those more gracefully in the Applessoft.
> 
> Is there an easy to make the IIGS clamping act like the IIe/IIc clamping? The firmware mouse API calls look exactly the same in the IIGS compared to the Apple I Mouse card (at least in passive mode which is all I am using)
> 
> thanks,
> Paul


Check the Control Panel under Options on a IIGS.  Make sure the selection for high speed mouse is set to NO.

I use scaling in my assembly mouse program.  Use a zero page address to hold the scale number.  The clamping of the screen is 40 times the scale #.  For a scale of 2, the clamp is 1-80, For a scale of 3, the clamp is 1-120 and for a scale of 4 the clamp is 1-120, etc

Then have the mouse routine move the cursor one point for every 2, 3 or 4, etc points movement of the mouse.

[toc] | [prev] | [next] | [standalone]


#5010

Frompaul.s.macmillan@gmail.com
Date2019-02-14 10:58 -0800
Message-ID<8cc2ed7b-565f-43d2-836d-be24a74a13db@googlegroups.com>
In reply to#5009
Thanks, yeah i can try that. But still curious why the IIGS notion of clamping is different from the Apple Mouse //e notion. (On the //e no scaling is necessary). 

I don't see a High-Speed Mouse option anywhere in the control pane -- I see mention of it as a setting in the Keyboard control panel in the original IIGS Owners Guide.  But maybe it was later removed?

-Paul

[toc] | [prev] | [next] | [standalone]


#5011

Fromgids.rs@sasktel.net
Date2019-02-14 11:49 -0800
Message-ID<fcfaa4b7-3637-43c6-8913-6ba70a8a4243@googlegroups.com>
In reply to#5010
On Thursday, February 14, 2019 at 12:58:10 PM UTC-6, paul.s.m...@gmail.com wrote:
> Thanks, yeah i can try that. But still curious why the IIGS notion of clamping is different from the Apple Mouse //e notion. (On the //e no scaling is necessary). 
> 
> I don't see a High-Speed Mouse option anywhere in the control pane -- I see mention of it as a setting in the Keyboard control panel in the original IIGS Owners Guide.  But maybe it was later removed?
> 
> -Paul


Are you using a ROM 03 IIGS?  I recall the control panel was slightly different.

And you are using the control panel when press ctrl-OA-ESC and not the one when booting into GSOS, correct?

[toc] | [prev] | [next] | [standalone]


#5012

FromAntoine Vignau <antoine.vignau@laposte.net>
Date2019-02-14 12:23 -0800
Message-ID<ec26a66e-1ee0-4bc2-a091-48dc0f72f5a6@googlegroups.com>
In reply to#5011
Do not use the old mouse calls on a ROM 3 IIgs, not really supported.

If I were you, I would detect the machine I am running on and call the mouse through the toolbox.

Antoine

[toc] | [prev] | [next] | [standalone]


#5013

FromBrian Patrie <bpatrie@bellsouth.spamisicky.net>
Date2019-02-14 23:15 -0600
Message-ID<q45hua$9cn$1@gioia.aioe.org>
In reply to#5010
On 14/02/2019 12.58, paul.s.macmillan@gmail.com wrote:
> Thanks, yeah i can try that. But still curious why the IIGS notion of clamping is different from the Apple Mouse //e notion. (On the //e no scaling is necessary).
> 
> I don't see a High-Speed Mouse option anywhere in the control pane -- I see mention of it as a setting in the Keyboard control panel in the original IIGS Owners Guide.  But maybe it was later removed?
> 
> -Paul

There is a Mouse Tracking setting.  Try running that way down.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.sys.apple2.programmer


csiph-web