ogallagher / terry

Terry the virtual secreTERRY
0 stars 0 forks source link

Driver control permissions #9

Open ogallagher opened 4 years ago

ogallagher commented 4 years ago

On a mac, the driver module will need permission from the os to take control of the mouse and keyboard. Annoyingly, the AWT Robot class does not fail to instantiate when this permission is not available. Instead, the calls to control peripherals are called and simply ignored.

This requires that I take care of permissions explicitly; request control of the mouse and keyboard if not already available, etc.

ogallagher commented 4 years ago

I will attempt handling acquisition of these control permissions again now that I’ve switched from the AWT Robot to the JFX Robot.