Re: [cc65] mouse irq callback

Date view Thread view Subject view

From: MagerValp (MagerValp_at_cling.gu.se)
Date: 2003-10-04 21:31:01


>>>>> "PF" == Piotr Fusik <P.Fusik_at_elka.pw.edu.pl> writes:

PF> Calling any user code on a 3-5 kHz IRQ doesn't make much sense, at
PF> least for Atari. You'd better use VBL interrupt for drawing the
PF> mouse pointer.

Ah, on the C64 the mouse irq is hooked into the VBL, but of course
that's not the case on other platforms, or even if you use an Amiga
mouse on the C64. And yes, what I did was write a custom VBL handler
that called the drivers (mouse, joystick, keyboard), and updated the
sprites.

Maybe what we need is some kind of irq handling API?

-- 
                       Wildstar delenda est
    ___          .     .  .         .       . +  .         .      o   
  _|___|_   +   .  +     .     +         .  Per Olofsson, arkadspelare
    o-o    .      .     .   o         +          MagerValp_at_cling.gu.se
     -       +            +    .     http://www.cling.gu.se/~cl3polof/
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-10-04 21:33:51 CEST