Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!utgpu!water!watmath!clyde!rutgers!cmcl2!nrl-cmf!umix!uunet!nuchat!sugar!peter
From: peter@sugar.UUCP
Newsgroups: comp.sys.amiga
Subject: How to steal the mouse port.
Message-ID: <1135@sugar.UUCP>
Date: Sun, 29-Nov-87 11:02:23 EST
Article-I.D.: sugar.1135
Posted: Sun Nov 29 11:02:23 1987
Date-Received: Wed, 2-Dec-87 03:02:08 EST
Organization: Sugar Land UNIX - Houston, TX
Lines: 34

Here's what I do. It works. You may not have to go through all this
rigamarole, but I do it anyway. Any less and you end up with a hung
mouse.

	Open gameport.device, 0.
	Send GPD_ASKTRIGGER, savebuffer.
	Close gameport.device.

	Open input.device.
	Send IND_SETMPORT, 2.
	Close input.device.

	Open gameport.device, 0.
	Send GPD_SET* for whatever setup you want.

	Play game.

	Close gameport.device, 0.

	Open input.device.
	Send IND_SETMPORT, 0.
	Send IND_SETMTYPE, GPCT_MOUSE.
	Send IND_SETMTRIG, savebuffer.
	Close input.device.

While playing with this, visions of multiple input devices and a multiuser
Amiga started to crop up. Let's see, make input device 0 act like /dev/tty,
and give you just your virtual amiga. MEMF_PUBLIC is only public to your
virtual amiga. input device 1 is for virtual amiga 1...

Hey, it's just an idea.
-- 
-- Peter da Silva  `-_-'  ...!hoptoad!academ!uhnix1!sugar!peter
-- Disclaimer: These U aren't mere opinions... these are *values*.