home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!edcastle!hwcs!neil
- From: neil@cs.hw.ac.uk (Neil Forsyth)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: Joystick programming help needed
- Message-ID: <1992Jul21.090623.2263@cs.hw.ac.uk>
- Date: 21 Jul 92 09:06:23 GMT
- References: <199207170837.AA21009@opus.calstatela.edu>
- Sender: news@cs.hw.ac.uk (News Administrator)
- Organization: Dept of Computer Science, Heriot-Watt University, Scotland
- Lines: 32
-
- In article <199207170837.AA21009@opus.calstatela.edu> rkim@CALSTATELA.EDU
- ("Richard H.S. Kim") writes:
- >Extracted from the March issue of the High Sierra Atari User Group JOURNAL.
- >...
- > The address that the joystick report is stored is 3592 (decimal)
- >or 0xE08 (hex).
- >
-
- NO!!!!!!
-
- Do not do this! PLEASE! That is not a documented TOS variable. The only true
- way to read the joysticks is to intercept the IKBD vector specifically for
- them. Kbdvbase (XBIOS #34) returns a pointer to a table of addresses for each
- handler. Vector number 6 (counting from 0) is called by the IKBD handler
- whenever there is a joystick event. The handler is called with A0 and the
- longword on the stack pointing to the joystick packet in the form:-
-
- HEADER($FE,$FF),JOY1,JOY2
-
- While I'm at it, vector #4 is the mouse handler and a relative mouse packet
- looks like this:-
-
- HEADER($F8-$FB - button status in bit 0 an 1), DX, DY
-
- +----------------------------------------------------------------------------+
- ! DISCLAIMER:Unless otherwise stated, the above comments are entirely my own !
- ! !
- ! Neil Forsyth JANET: neil@uk.ac.hw.cs !
- ! Dept. of Computer Science ARPA: neil@cs.hw.ac.uk !
- ! Heriot-Watt University UUCP: ..!ukc!cs.hw.ac.uk!neil !
- ! Edinburgh, Scotland, UK "That was never 5 minutes!" - "I'm afraid it was" !
- +----------------------------------------------------------------------------+
-