I just tested your code and it is working fine, I'm on 10.14.6. It works both in MiniAudicle and while running the script from terminal.

I remember that at one point I had to enable permissions to allow the ADC to receive audio while running scripts from terminal. That doesn't seem too related but who knows?

On Wed, Oct 7, 2020 at 3:37 PM Perry Cook <prc@cs.princeton.edu> wrote:
Hi all,

Has anyone had trouble, or succeeded, with using the mouse since Mojave?

I suspect that it’s a permissions thing, but nothing asks if it can use the mouse.
I know that Processing users have had trouble with camera permissions, so I
suspect this might be similar.  Odd that ChucK will open the mouse and report
that it’s ok, tho.  Here’s my super simple test code:


Hid hi;             // hid (will be mouse) object
HidMsg msg;  // hid message

if( !hi.openMouse( 0 ) ) me.exit();
<<< "mouse ready...", "" >>>;

while( true )
{
        // wait on event
        hi => now;
        // get message(s)
        while( hi.recv( msg ) )
        {
            if( msg.is_button_down() )
                <<< "BANG!!!", msg.x, msg.y >>>;
        }
}

_______________________________________________
chuck-users mailing list
chuck-users@lists.cs.princeton.edu
https://lists.cs.princeton.edu/mailman/listinfo/chuck-users