Skip to content

Releases: KoalafiedDev/setledsmac

Version 1.0.3

12 Jan 21:05
6e88465
Compare
Choose a tag to compare

Modernized Caps Lock detection and framework improvements by KoalafiedDev:

  • Uses macOS's native Carbon framework to detect modifier key state changes.
  • Monitors kCGEventFlagsChanged events and checks modifier flags directly.
  • Eliminates hardcoded key codes for better compatibility with different keyboard layouts.
  • More reliable as it directly detects Caps Lock state, supporting physical and virtual keyboards.

Notes for Num Lock and Scroll Lock:

  • macOS lacks built-in constants for these modifiers.
  • For support, consider:
    • Querying LED states with IOKit.
    • Using a USB HID descriptor parser.
    • Maintaining a mapping of known key codes for different keyboard types.