Returns a Quartz event source created with a specified source state.
- macOS 10.4+
- Mac Catalyst 13.0+
- Core Graphics
The event state table to use for this event source. Pass one of the constants listed in
Source State ID
A new event source, or
NULL if the specified source state is not valid. When you no longer need the event source, you should release it using the function
If two or more event sources are using the same source state and one of them is released, the remaining event sources will behave as if all keys and buttons on input devices are up in generating new events from this source.