Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!fauern!fauern!faui41!hgschmie From: hgschmie@faui41.informatik.uni-erlangen.de (Henning Schmiedehausen) Newsgroups: comp.sys.amiga Subject: Re: Replacing the mouse Message-ID: Date: 1 Oct 90 18:32:11 GMT References: <6045@plains.NoDak.edu> <6003@eklektik.UUCP> Sender: root@medusa.informatik.uni-erlangen.de Lines: 58 In <6003@eklektik.UUCP> eric@eklektik.UUCP (/dev/ph1) writes: >In article <6045@plains.NoDak.edu> person@plains.NoDak.edu (Brett G. Person) writes: >>I am currently working with a person who has cerebral palsey and needs a >... >>non-technical (no big surpreise..) and what I want to do is build a joystick >>that will send the same signals as the mouse sends. >Or...Make the joystick emulate the mouse in software. The productivity set >Gizmoz II included such a program, called joymouse. It might be easier >than hacking hardware. >-- >--------------------------------------- >Eric Kennedy eric@eklektik.pgh.pa.us >(formerly ejkst@pitt.UUCP) ...pitt!idis!eklektik!eric Well, you don't even need any software emulation! Just open the input.device and tell it to use the joystick instead of a mouse! Do the following: open the input.device use IND_SETMTYPE as command and GPCT_RELJOYSTICK / GPCT_ABSJOYSTICK as Type in the request close the input.device connect joystick to port #1 If you don't like to disconnect the mouse, well open the input.device use IND_SETMPORT as comand and an pointer to an UWORD, which must contain 0x01 for port nr. 2 IMPORTANT! THE DATA-field of the request MUST contain the address of the UWORD containing the 0x01, not the 0x01 itself. close the device I's a shame, that Commo told almost nothing about IND_SETMTYPE in V 1.3 Libs&Devs (p 693 ff), I got this trick from a german book called 'Amiga Intern Vol. 2'. But look, those guys at Commo-Amiga are MUCH smarter than their fellows at Commo Sales Department. They thought about using the joystick as a Mouse-Replacement! If you desperately need the complete program, email me and I will send you a little C-Prog which performs the necessary steps to switch over to the mouse. It's great to see, that there are people out there, who care about handicapped people. Henning +-------------------------------------------+--------------------+ | hgschmie@faui09.informatik.uni-erlangen.de| Space is big, | | hgschmie@faui41.informatik.uni-erlangen.de| Space is dark, | | (Henning Schmiedehausen, Glueckstrasse 3 | it's hard to find | | 8520 Erlangen, West Germany, 09131/209611)| a place to park | +-------------------------------------------+--------------------+