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 >>>; } }
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
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
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
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
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
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (3)
-
Anthony Bowyer-Lowe
-
Eric Heep
-
Perry Cook