Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "mac-mouse-fix-scripts"]
path = mac-mouse-fix-scripts
url = https://github.com/noah-nuebling/mac-mouse-fix-scripts
[submodule "Helper/External/hidapi"]
path = Helper/External/hidapi
url = https://github.com/libusb/hidapi
22 changes: 22 additions & 0 deletions Helper/Core/HIDPP/HIDPPListener.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// --------------------------------------------------------------------------
// HIDPPListener.h
// Created for Mac Mouse Fix (https://github.com/noah-nuebling/mac-mouse-fix)
// Created by Pradyumna Krishna in 2026
// Licensed under the MMF License (https://github.com/noah-nuebling/mac-mouse-fix/blob/master/License)
// --------------------------------------------------------------------------
//

#import <Foundation/Foundation.h>
#import <IOKit/hid/IOHIDDevice.h>

/// Listens for Logitech HID++ notifications and synthesizes mouse button events.
/// Best-effort: start may fail if the device lacks HID++ 2.0 support.
@interface HIDPPListener : NSObject

- (instancetype)initWithDevice:(IOHIDDeviceRef)device;
- (uint64_t)registryID;
- (BOOL)start:(NSError * _Nullable __autoreleasing *)error;
- (void)stop;

@end
Loading