[chuck-users] Mouse under Mojave+

Anthony Bowyer-Lowe anthony at lowbroweye.com
Thu Oct 8 06:45:19 EDT 2020


Hi Perry,

FWIW, I *can* replicate your issue on my Mojave 10.14.6 (MacBook Pro), in
that I can't receive any Hid input from scripts run in both MiniAudicle and
my shell terminal.

I recall that I had an issue a few months ago where I had to re-add
programs such as KeyboardMaestro, MiniAudicle, iTerm2, etc to the
Accessibility pane of MacOS's "Security & Privacy" System Preferences.
Sadly my sleepy neuron can't remember any concrete details.

I've removed and re-added the Chuck-related stuff just now but the issue
persists.



On Thu, 8 Oct 2020 at 00:19, Eric Heep <ericheep at gmail.com> wrote:

> 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 at 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 at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20201008/19d53ae3/attachment.html>


More information about the chuck-users mailing list