Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!edcastle!cs.ed.ac.uk!tkld From: tkld@cs.ed.ac.uk (Kevin Davidson) Newsgroups: comp.sys.atari.st.tech Subject: "Right way" to read the joystick ports ? Keywords: joyvec ikbws joysticks Message-ID: <4454@skye.cs.ed.ac.uk> Date: 14 Jan 91 11:25:35 GMT Sender: nnews@cs.ed.ac.uk Reply-To: tkld@lfcs.ed.ac.uk (Kevin Davidson) Organization: CS4, Edinburgh University Lines: 17 What is the "right way" to read the state of the joysticks, and return everything to normal after I've finished ? Do I just hook a routine into joyvec to receive stuff from the keyboard 6301? Should I tell the 6301 to send joystick messages instead of mouse messages ? How do I reset it (should I check what it was first with a status message)? Suppose I want players 3&4 on the centronics port too, do I poll or can I use interrupts ? Anyone got code to do it ? I started, but got fed up rebooting if I screwed the mouse vector. I'm sure loads of peeps would love to know how it's "supposed" to be done. .Kevin.