LiveSplit / livesplit-core

livesplit-core is a library that provides a lot of functionality for creating a speedrun timer.

Home Page:https://livesplit.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ask for Permission for the Hotkeys on Mac

savage13 opened this issue · comments

I made an attempt to get Hotkeys working on Mac. The call to CGEventTapCreate() returns null as it does not have permission.

let port = CGEventTapCreate(

You can ask the system to show the Security and Privacy preferences (in System Preferences) by following

Once the system is granted permission, the HotKeys appear to work properly.

To call these mac functions from rust requires a set of definitions for CFDictionary and friends added to

https://github.com/LiveSplit/livesplit-core/blob/fc9a1c92fb5099793ebf250d241361f5f83a9ac1/crates/livesplit-hotkey/src/macos/cg.rs