Class CGEventTapInformation

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • EVENTTAPID, TAPPOINT, OPTIONS, EVENTSOFINTEREST, TAPPINGPROCESS, PROCESSBEINGTAPPED, ENABLED, MINUSECLATENCY, AVGUSECLATENCY, MAXUSECLATENCY

        The struct member offsets.
    • Constructor Detail

      • CGEventTapInformation

        public CGEventTapInformation​(java.nio.ByteBuffer container)
        Creates a CGEventTapInformation instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • eventTapID

        public int eventTapID()
        Returns:
        the value of the eventTapID field.
      • tapPoint

        public int tapPoint()
        HID, session, annotated session
      • options

        public int options()
        listener, filter
      • eventsOfInterest

        public long eventsOfInterest()
        mask of events being tapped
      • tappingProcess

        public long tappingProcess()
        process that is tapping events
      • processBeingTapped

        public long processBeingTapped()
        zero if not a per-process tap
      • enabled

        public boolean enabled()
        true if tap is enabled
      • minUsecLatency

        public float minUsecLatency()
        minimum latency in microseconds
      • avgUsecLatency

        public float avgUsecLatency()
        average latency in microseconds
      • maxUsecLatency

        public float maxUsecLatency()
        maximum latency in microseconds
      • malloc

        public static CGEventTapInformation malloc()
        Returns a new CGEventTapInformation instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static CGEventTapInformation calloc()
        Returns a new CGEventTapInformation instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static CGEventTapInformation create()
        Returns a new CGEventTapInformation instance allocated with BufferUtils.
      • create

        public static CGEventTapInformation create​(long address)
        Returns a new CGEventTapInformation instance for the specified memory address.
      • createSafe

        @Nullable
        public static CGEventTapInformation createSafe​(long address)
        Like create, but returns null if address is NULL.
      • malloc

        public static CGEventTapInformation malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new CGEventTapInformation instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static CGEventTapInformation calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new CGEventTapInformation instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
      • malloc

        public static CGEventTapInformation.Buffer malloc​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static CGEventTapInformation.Buffer calloc​(int capacity,
                                                          org.lwjgl.system.MemoryStack stack)
        Returns a new CGEventTapInformation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • neventTapID

        public static int neventTapID​(long struct)
        Unsafe version of eventTapID().
      • ntapPoint

        public static int ntapPoint​(long struct)
        Unsafe version of tapPoint().
      • noptions

        public static int noptions​(long struct)
        Unsafe version of options().
      • neventsOfInterest

        public static long neventsOfInterest​(long struct)
        Unsafe version of eventsOfInterest().
      • ntappingProcess

        public static long ntappingProcess​(long struct)
        Unsafe version of tappingProcess().
      • nprocessBeingTapped

        public static long nprocessBeingTapped​(long struct)
        Unsafe version of processBeingTapped().
      • nenabled

        public static boolean nenabled​(long struct)
        Unsafe version of enabled().
      • nminUsecLatency

        public static float nminUsecLatency​(long struct)
        Unsafe version of minUsecLatency().
      • navgUsecLatency

        public static float navgUsecLatency​(long struct)
        Unsafe version of avgUsecLatency().
      • nmaxUsecLatency

        public static float nmaxUsecLatency​(long struct)
        Unsafe version of maxUsecLatency().