Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!sri-unix!ctnews!pyramid!hplabs!hpda!hpesoc1!cunniff From: cunniff@hpesoc1.HP.COM (Ross Cunniff) Newsgroups: comp.sys.amiga Subject: Re: ReportMouse doesn't Message-ID: <4200004@hpesoc1.HP.COM> Date: 9 Feb 88 23:53:44 GMT References: <415@boole.acc.virginia.edu> Organization: Hewlett Packard, Cupertino Lines: 28 In article <415@boole.acc.virginia.edu>, pmy@boole.acc.virginia.edu writes: >I'm trying to selectively enable and disable MOUSEMOVE broadcasts (from >IDCMP). I open a window with the REPORTMOUSE flag set. I immediately >shut off mouse reports with ReportMouse (w, 0). So far, so good (near >as I can tell). The program is also watching for MOUSEBUTTONS. When >the select button is pressed, I want to enable MOUSEMOVE reports. >ReportMouse (w, 1), right? Wrong, and the Guru makes a special effort >to tell me so. Also, when the select button is released, I want >MOUSEMOVEs disabled. Anyway, does anyone know what the problem is? >Has the use of ReportMouse changed since 1.1? Thanks in advance, >naturally. > >P.S. On closer inspection, ReportMouse (w, 0) had no effect at all. > Mousemove events came through anyway. The interface to ReportMouse in amiga.lib is broken (on Lattice compilers at least, not sure about Manx). Instead of: ReportMouse( Win, Bool ) try: ReportMouse( Bool, Win ) >Pete Yadlowsky Ross Cunniff