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


Groups > comp.sys.apple2.programmer > #4164

Re: Mouse - direct access to position

Newsgroups comp.sys.apple2.programmer
Date 2018-01-30 19:28 -0800
References <8c29dd08-8f59-4dd2-bd5b-97e398290b06@googlegroups.com> <7c4a0a81-e4b0-44df-8339-27006cc83a91@googlegroups.com> <83de9411-0d30-44e7-a0a7-98aa4860434d@googlegroups.com>
Message-ID <552204aa-e044-4285-89cb-d394f8dd31df@googlegroups.com> (permalink)
Subject Re: Mouse - direct access to position
From gids.rs@sasktel.net

Show all headers | View raw


 
> > What are you calling the IO space, if its not the screen holes?
> > 
> > I just copy the old coordinates from the screen holes to somewhere in memory before calling READMOUSE, and updating the new coordinates.
> > 
> > Another thing you could do is set up a mouse interrupt so that your program is interrupted only when either the mouse moves or a button is pressed.  This way you know the screen holes are still the same until you actually do the READMOUSE to update the screen holes.
> > 
> > Or if you want the mouse coordinates to be somewhere totally different than where you pressed the button, is to set the coordinates in the screen holes, then call SETMOUSE.
> 
> I meant the $CXXX IO space. I want to be able to directly poll the mouse coordinates via the $CXXX space without making any JSR calls to the mouse card rom read routine which, from what I understand, updates the text screen holes with position data that you then have to read from. The reason for this is that I want the peripheral card I'm making poll this IO space for mouse coordinates; it would complicate matters if I have to actually run the mouse rom routine first.



Right!  I drew a blank there for a second.  I thought I remembered the mouse using the I/O space, so checked my notes.

Only the IIGS supports these locations.

$C024 - mouse data byte
$C027 - mouse status byte
$C040.C047

$C040 - reserved
$C041 - read mouse interrupts
$C042 - reserved
$C043 - reserved
$C044 - Mouse Delta X
$C045 - Mouse Delta Y
$C046 - Mouse flags
$C047 - Vblint

Back to comp.sys.apple2.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Mouse - direct access to position Anthony Ortiz <anthonypaulo@gmail.com> - 2018-01-30 16:08 -0800
  Re: Mouse - direct access to position gids.rs@sasktel.net - 2018-01-30 17:25 -0800
    Re: Mouse - direct access to position Anthony Ortiz <anthonypaulo@gmail.com> - 2018-01-30 17:42 -0800
      Re: Mouse - direct access to position gids.rs@sasktel.net - 2018-01-30 19:28 -0800
        Re: Mouse - direct access to position Anthony Ortiz <anthonypaulo@gmail.com> - 2018-01-30 19:34 -0800
          Re: Mouse - direct access to position "Frank M." <frank_o_rama@hotmail.com> - 2018-01-30 21:02 -0800
            Re: Mouse - direct access to position Antoine Vignau <antoine.vignau@laposte.net> - 2018-01-30 22:04 -0800
              Re: Mouse - direct access to position "Frank M." <frank_o_rama@hotmail.com> - 2018-01-30 22:29 -0800
            Re: Mouse - direct access to position Brian Patrie <bpatrie@bellsouth.spamisicky.net> - 2018-02-01 03:01 -0600
              Re: Mouse - direct access to position Anthony Ortiz <anthonypaulo@gmail.com> - 2018-02-01 06:43 -0800
                Re: Mouse - direct access to position Michael J. Mahon <mjmahon@aol.com> - 2018-02-01 11:34 -0600

csiph-web