Skip to content

Add Magic Mouse battery support - #1114

Merged
lujjjh merged 1 commit into
mainfrom
magic-mouse-battery
Mar 21, 2026
Merged

lujjjh merged 1 commit into
mainfrom
magic-mouse-battery

Conversation

@lujjjh

@lujjjh lujjjh commented Mar 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • add a battery fallback for Apple Bluetooth devices like Magic Mouse when the standard HID battery properties are empty
  • show the resolved battery level in both the device picker and the menu bar battery indicator
  • add CI-safe test coverage for Apple Bluetooth battery detection

Related issues

Testing

  • xcodebuild test -project LinearMouse.xcodeproj -scheme LinearMouse -quiet

Read Apple Bluetooth battery data from the system battery service so Magic Mouse battery levels show up in the menu bar and device picker even when the standard HID properties are empty.
@lujjjh lujjjh changed the title Add Magic Mouse battery fallback Add Magic Mouse battery support Mar 21, 2026
@lujjjh lujjjh added the enhancement New feature or request label Mar 21, 2026
@lujjjh
lujjjh merged commit 02b01c5 into main Mar 21, 2026
1 check passed
@lujjjh
lujjjh deleted the magic-mouse-battery branch March 21, 2026 17:44
@lujjjh lujjjh linked an issue Mar 22, 2026 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add magic mouse battery indicator

1 participant