-
-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
% ./detect_mice
No mice detected!
% uname -a
Darwin mittonk-air21.local 23.6.0 Darwin Kernel Version 23.6.0: Wed Jul 31 20:49:46 PDT 2024; root:xnu-10063.141.1.700.5~1/RELEASE_ARM64_T8103 arm64
Not sure if this is an Apple OS change, or just my machine's permissions.
IOHIDDeviceOpen() is failing:
Process 96016 launched: '/Users/mittonk/play/manymouse/detect_mice' (arm64)
2025-01-16 12:19:32.013972-0500 detect_mice[96016:6540662] [default] 0x100000891: TCC deny IOHIDDeviceOpen
2025-01-16 12:19:32.014226-0500 detect_mice[96016:6540662] [default] 0x100000891: TCC deny IOHIDDeviceOpen
Process 96016 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x0000000100002fa0 detect_mice`config_hidmanager(dict=2 key/value pairs) at macosx_hidmanager.c:284:29
281 MouseStruct *mouse = &mice[i];
282 IOHIDDeviceRef dev = mouse->device;
283 IOReturn status = IOHIDDeviceOpen(dev, HIDOPS);
-> 284 if (IOHIDDeviceOpen(dev, HIDOPS) != kIOReturnSuccess)
285 {
286 mouse->device = NULL; /* oh well. */
287 mouse->logical = -1;
Target 0: (detect_mice) stopped.
(lldb) p status
(IOReturn) -536870174
(lldb) p/x status
(IOReturn) 0xe00002e2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels