Xref: utzoo comp.sys.amiga.introduction:261 comp.sys.amiga.hardware:7328 comp.sys.amiga.programmer:1606 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!celia!neil From: neil@celia.UUCP (Neil Richmond) Newsgroups: comp.sys.amiga.introduction,comp.sys.amiga.hardware,comp.sys.amiga.programmer Subject: Re: Graphics tablet Driver Keywords: help, serial mouse, tablet driver Message-ID: <945@celia.UUCP> Date: 18 Mar 91 22:53:50 GMT References: <8055@chorus.fr> <939@celia.UUCP> <941@celia.UUCP> <19918@cbmvax.commodore.com> Reply-To: celia!neil@usc.edu (Neil Richmond) Organization: Rhythm & Hues, Inc., Hollywood Lines: 32 In article <19918@cbmvax.commodore.com> peter@cbmvax.commodore.com (Peter Cherna) writes: >To send mouse movements, send IO to the input.device with DoIO(). Prepare >an InputEvent, and use the device command IND_WRITEEVENT. For mouse movement, >use IECLASS_RAWMOUSE (or IECLASS_POINTERPOS). To do button-down transitions, >use IECLASS_RAWMOUSE and set IECODE_LBUTTON or _RBUTTON. Button-up transitions >are similar, but you also use IECODE_UP_PREFIX. I am doing all these things. The problem I am having is that the mouse is not behaving consitently with each window I open. WHen I open a new window, the mouse travels to the lower right corner. I have to move my pen away from the tablet giving control back to the mouse. Then after I do a mouse operation, I sometimes get control back to pen. I thought it might have to do with layers, but I am not sure, now. After I do a mouse event, I close the message port and reopen it for the next event. >Remember that your InputEvent has to be re-initialized each time. >Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. >{uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com I think I am doing this when I close the message port and reopen it for the next mouse event. Thanks. neil -- Only 3211 shopping days left till the next millenium! Neil F. Richmond INTERNET: celia!neil@usc.edu Rhythm & Hues Inc. UUCP: ...{ames,hplabs}!lll-tis!celia!neil)