pwr-Solaar/Solaar

macOS: Support diversion with a keyboard emulation

Open

#2,732 建立於 2024年12月27日

在 GitHub 查看
 (3 留言) (1 反應) (0 負責人)Python (383 fork)batch import
enhancementhelp wanted

倉庫指標

Star
 (4,528 star)
PR 合併指標
 (平均合併 1天 15小時) (30 天內合併 5 個 PR)

描述

Information

  • Solaar version: 1.1.14RC
  • Distribution: macOS

Is your feature request related to a problem? Please describe. The existing implementation of Linux provides a dummy keyboard to fake inputs using evdev. The diversion of keys is not functional on macOS, rendering man rules unusable. However, to fix this for macOS it requires a good understanding how the diversion works and how to keep it compatible with Linux rules as best as possible.

Describe the solution you'd like There's no equivalent for macOS, but pyobjc with CGEventCreateKeyboardEvent and similar functions could be useful.

Describe alternatives you've considered

  • Fake a whole HID device, if there's a library
  • Use macOS scripting with osascript

Additional context Add any other context or screenshots about the feature request here.

貢獻者指南