Returns the source state associated with a Quartz event source.
- macOS 10.4+
- Mac Catalyst 13.0+
- Core Graphics
The event source to access.
The source state associated with the specified event source.
This function returns the ID of the source state table associated with an event source.
For event sources created with the
k source state, this function returns the ID of the private source state table created for the event source. This unique ID may be passed to the
CGEvent function to create a second event source sharing the same state table. This may be useful, for example, in creating separate mouse and keyboard sources which share a common private state.