@FunctionalInterface
public interface CGEventTapCallBackI
extends org.lwjgl.system.CallbackI.P
EventTapCreate method.
CGEventRef (*) (
CGEventTapProxy proxy,
CGEventType type,
CGEventRef event,
void *userInfo
)org.lwjgl.system.CallbackI.B, org.lwjgl.system.CallbackI.D, org.lwjgl.system.CallbackI.F, org.lwjgl.system.CallbackI.I, org.lwjgl.system.CallbackI.J, org.lwjgl.system.CallbackI.N, org.lwjgl.system.CallbackI.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SIGNATURE |
| Modifier and Type | Method and Description |
|---|---|
default long |
callback(long args) |
default java.lang.String |
getSignature() |
long |
invoke(long proxy,
int type,
long event,
long userInfo)
A client-supplied callback function that’s invoked whenever an associated event tap receives a Quartz event.
|
static final java.lang.String SIGNATURE
default java.lang.String getSignature()
getSignature in interface org.lwjgl.system.CallbackIdefault long callback(long args)
callback in interface org.lwjgl.system.CallbackI.Plong invoke(long proxy,
int type,
long event,
long userInfo)
The callback is passed a proxy for the tap, the event type, the incoming event, and the user-defined data specified when the event tap was created. The
function should return the (possibly modified) passed-in event, a newly constructed event, or NULL if the event is to be deleted. The event passed to
the callback is retained by the calling code, and is released after the callback returns and the data is passed back to the event system. If a
different event is returned by the callback function, then that event will be released by the calling code along with the original event, after the
event data has been passed back to the event system.
Copyright LWJGL. All Rights Reserved. License terms.