Article View: comp.sys.amiga.tech
Article #9451reading mouse position with console.device
From: finkel
Date: Sun, 07 Aug 1988 20:43
Date: Sun, 07 Aug 1988 20:43
21 lines
1484 bytes
1484 bytes
Hi!
I'm trying to get some mouse events using console.device, and I've been
running into problems.
I asked for raw events 2,4,11,12 ( <CSI>2;4;11;12{ ), and successfully
received 2,11,12 . However, I managed only to get the button status, but
not the mouse position. I am trying to trap mouse click and to get the x,y
position, so that I could move the console.device cursor using the mouse, and
not only the cursor keys. I didn't get any raw event #4, and I am not even sure
I know what it is supposed to do. I was hoping to find the x,y location
in the x,y variables in event #2, but instead found 0,0 most of the time, and
a small signed value when I pressed the mouse button while moving it fast.
any help?
-------------------------------------------------------------------------------
Udi Finkelstein | Bitnet: finkel@taurus.bitnet or finkel@math.tau.ac.il
Tel Aviv University | Internet: finkel%taurus.bitnet@cunyvm.cuny.edu
Israel | UUCP: ...!psuvax1!taurus.bitnet!finkel
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<8808072043.AA19006@MATH.Tau.Ac.IL>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!rutgers!ucsd!ucbvax!TAURUS.BITNET!finkelShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!rutgers!ucsd!ucbvax!TAURUS.BITNET!finkel From: finkel@TAURUS.BITNET Newsgroups: comp.sys.amiga.tech Subject: reading mouse position with console.device Message-ID: <8808072043.AA19006@MATH.Tau.Ac.IL> Date: 7 Aug 88 20:43:03 GMT Sender: daemon@ucbvax.BERKELEY.EDU Reply-To: <finkel%TAURUS.BITNET@CUNYVM.CUNY.EDU> Lines: 21