Y
Hacker News
new
|
ask
|
show
|
jobs
by
klodolph
1897 days ago
Yes. You have to dig a bit to find these APIs, and they are OS-specific (and the scan codes reported by the OS are OS-specific too, even though most keyboards are USB HID these days).
Here is the function for macOS:
https://developer.apple.com/documentation/coreservices/13905...