[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Joystick Devices



In article <dempson-0608960110480001@dempson.actrix.gen.nz>,
David Empson <dempson@actrix.gen.nz> wrote:
>The problem with the Apple II version of the TouchWindow is that it
>requires a lot of intensive polling.  To get reasonable results means
>disabling interrupts, slowing the machine down to 1 MHz, and sitting in a
>loop polling it for up to three milliseconds, preferably twice to get
>decent readings for X and Y.  This should be done as often as possible.

   I have asm source code to read both axes of the joystick at once in
65816 asm. It does a pretty good job, even with interrupts on. [I
might drop it on my www site if there's interest, next to the FTA's
linedraw source code.]

Nathan

--
<*> Nathan Mates http://www.visi.com/~nathan/      <*>
# What are the facts? Again and again and again-- what are the _facts_?
# Shun wishful thinking, avoid opinion, care not what the neighbors
# think-- what are the facts, and to how many decimal places?  -R.A. Heinlein