Path: utzoo!attcan!uunet!aplcen!haven!decuac!decwrl!shelby!agate!bionet!ames!sun-barr!newstop!sun!stpeter.Eng.Sun.COM!cmcmanis From: cmcmanis@stpeter.Eng.Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga.tech Subject: Re: Analog joysticks (was Re: Amiga joysticks) Keywords: Analog Joysticks Message-ID: <136446@sun.Eng.Sun.COM> Date: 31 May 90 19:54:54 GMT References: <1596@lpami.wimsey.bc.ca> <1990May30.172116.5685@dg-rtp.dg.com> Sender: news@sun.Eng.Sun.COM Organization: Sun Microsystems, Mt. View, Ca. Lines: 23 In article <1990May30.172116.5685@dg-rtp.dg.com> ( Poirier local) writes: >Is it possible, via some to-be-designed input-munging software, to >more-or-less transparently use an ordinary analog joystick as a programmable >joystick or mouse, in the tradition (though not the same implementation) >of the Gravis Mousestick (TM)? Yes. The steps are : 1) Write an analog joystick device driver. 2) Write an input handler that knows about your driver. 3) Load and install the input handler in front of Intuition and the CX library. (If you have Commodities) 4) The input handler should open the joystick device driver (or it could be imbedded in the input handler) and begin to periodically scan the state of the joystick. When it changes position, the input handler should generate appropriate MOUSEMOVE input events and pass them down the chain. -- --Chuck McManis Sun Microsystems uucp: {anywhere}!sun!cmcmanis BIX: Internet: cmcmanis@Eng.Sun.COM These opinions are my own and no one elses, but you knew that didn't you. "I tell you this parrot is bleeding deceased!"