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

Re: Joystick Devices



In article <4u6f69$9ki@darla.visi.com>, nathan@visi.com (Nathan Mates) wrote:

>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.

However, I expect it has lower resolution than the standard joystick scanner.

For a TouchWindow (or other absolute devices), you want HIGHER resolution
if possible, to be able to get accurate screen coordinates (for the
horizontal axis, at least).

-- 
David Empson
dempson@actrix.gen.nz
Snail Mail: P.O. Box 27-103, Wellington, New Zealand