fix ci
This commit is contained in:
parent
6886a8948b
commit
5a91701d3d
@ -5,7 +5,7 @@
|
|||||||
// https://github.com/codebytere/node-mac-permissions/blob/main/permissions.mm
|
// https://github.com/codebytere/node-mac-permissions/blob/main/permissions.mm
|
||||||
|
|
||||||
extern "C" bool InputMonitoringAuthStatus(bool prompt) {
|
extern "C" bool InputMonitoringAuthStatus(bool prompt) {
|
||||||
if (@available(macos 10.15, *)) {
|
if (floor(NSAppKitVersionNumber) >= NSAppKitVersionNumber10_15) {
|
||||||
IOHIDAccessType theType = IOHIDCheckAccess(kIOHIDRequestTypeListenEvent);
|
IOHIDAccessType theType = IOHIDCheckAccess(kIOHIDRequestTypeListenEvent);
|
||||||
NSLog(@"IOHIDCheckAccess = %d, kIOHIDAccessTypeGranted = %d", theType, kIOHIDAccessTypeGranted);
|
NSLog(@"IOHIDCheckAccess = %d, kIOHIDAccessTypeGranted = %d", theType, kIOHIDAccessTypeGranted);
|
||||||
switch (theType) {
|
switch (theType) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user