Class GLFWKeyCallback

  • All Implemented Interfaces:
    java.lang.AutoCloseable, GLFWKeyCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.CallbackI.V, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer


    public abstract class GLFWKeyCallback
    extends org.lwjgl.system.Callback
    implements GLFWKeyCallbackI
    Instances of this class may be passed to the SetKeyCallback method.

    Type

     void (*) (
         GLFWwindow *window,
         int key,
         int scancode,
         int action,
         int mods
     )
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.lwjgl.system.CallbackI

        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.P, org.lwjgl.system.CallbackI.S, org.lwjgl.system.CallbackI.V, org.lwjgl.system.CallbackI.Z
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      • Fields inherited from interface org.lwjgl.system.Pointer

        POINTER_SHIFT, POINTER_SIZE
    • Method Detail

      • create

        public static GLFWKeyCallback create(long functionPointer)
        Creates a GLFWKeyCallback instance from the specified function pointer.
        Returns:
        the new GLFWKeyCallback
      • createSafe

        @Nullable
        public static GLFWKeyCallback createSafe(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • create

        public static GLFWKeyCallback create(GLFWKeyCallbackI instance)
        Creates a GLFWKeyCallback instance that delegates to the specified GLFWKeyCallbackI instance.