Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to call new_keyboard_event with NULL source? #490

Open
jbis9051 opened this issue Dec 24, 2021 · 0 comments
Open

How to call new_keyboard_event with NULL source? #490

jbis9051 opened this issue Dec 24, 2021 · 0 comments

Comments

@jbis9051
Copy link

jbis9051 commented Dec 24, 2021

CGEvent::new_keyboard_event calls CGEventCreateKeyboardEvent. CGEventCreateKeyboardEvent accepts NULL as a source according to https://developer.apple.com/documentation/coregraphics/1456564-cgeventcreatekeyboardevent

source
An event source taken from another event, or NULL.

However, new_keyboard_event only accepts CGEventSource. How can I pass a null?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant