config_input not well tested yet

This commit is contained in:
rustdesk
2023-01-06 13:19:08 +08:00
parent ce5b49b7dd
commit 584295f3fa
2 changed files with 14 additions and 1 deletions

View File

@@ -7,7 +7,7 @@
extern "C" bool InputMonitoringAuthStatus(bool prompt) {
if (@available(macos 10.15, *)) {
IOHIDAccessType theType = IOHIDCheckAccess(kIOHIDRequestTypeListenEvent);
NSLog(@"IOHIDCheckAccess = %d", theType);
NSLog(@"IOHIDCheckAccess = %d, kIOHIDAccessTypeGranted = %d", theType, kIOHIDAccessTypeGranted);
switch (theType) {
case kIOHIDAccessTypeGranted:
return true;