Interface SystemEventProcessor

All Known Implementing Classes:
SystemEventProcessorImpl

public interface SystemEventProcessor
  • Method Details

    • addDefaultCallbacks

      static void addDefaultCallbacks(CallbackKeeper guiCallbackKeeper, SystemEventProcessor processor)
      Add default callbacks to callback keeper.
      Parameters:
      guiCallbackKeeper - the gui callback keeper
    • createDefaultGlfwWindowSizeCallbackI

      static org.lwjgl.glfw.GLFWWindowSizeCallbackI createDefaultGlfwWindowSizeCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowSizeCallback.
      Returns:
      the GLFWWindowSizeCallback.
    • createDefaultGlfwWindowRefreshCallbackI

      static org.lwjgl.glfw.GLFWWindowRefreshCallbackI createDefaultGlfwWindowRefreshCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowRefreshCallback.
      Returns:
      the GLFWWindowRefreshCallback.
    • createDefaultGlfwWindowPosCallbackI

      static org.lwjgl.glfw.GLFWWindowPosCallbackI createDefaultGlfwWindowPosCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowPosCallback.
      Returns:
      the GLFWWindowPosCallback.
    • createDefaultGlfwWindowIconifyCallbackI

      static org.lwjgl.glfw.GLFWWindowIconifyCallbackI createDefaultGlfwWindowIconifyCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowIconifyCallback.
      Returns:
      the GLFWWindowIconifyCallback.
    • createDefaultGlfwWindowFocusCallbackI

      static org.lwjgl.glfw.GLFWWindowFocusCallbackI createDefaultGlfwWindowFocusCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowFocusCallback.
      Returns:
      the GLFWWindowFocusCallback.
    • createDefaultGlfwWindowCloseCallbackI

      static org.lwjgl.glfw.GLFWWindowCloseCallbackI createDefaultGlfwWindowCloseCallbackI(SystemEventProcessor processor)
      Creates default GLFWWindowCloseCallback.
      Returns:
      the GLFWWindowCloseCallback.
    • createDefaultGlfwCursorPosCallbackI

      static org.lwjgl.glfw.GLFWCursorPosCallbackI createDefaultGlfwCursorPosCallbackI(SystemEventProcessor processor)
      Creates default GLFWCursorPosCallback.
      Returns:
      the GLFWCursorPosCallback.
    • createDefaultGlfwMouseButtonCallbackI

      static org.lwjgl.glfw.GLFWMouseButtonCallbackI createDefaultGlfwMouseButtonCallbackI(SystemEventProcessor processor)
      Creates default GLFWMouseButtonCallback.
      Returns:
      the GLFWMouseButtonCallback.
    • createDefaultGlfwFramebufferSizeCallbackI

      static org.lwjgl.glfw.GLFWFramebufferSizeCallbackI createDefaultGlfwFramebufferSizeCallbackI(SystemEventProcessor processor)
      Creates default GLFWFramebufferSizeCallback.
      Returns:
      the GLFWFramebufferSizeCallback.
    • createDefaultGlfwCursorEnterCallbackI

      static org.lwjgl.glfw.GLFWCursorEnterCallbackI createDefaultGlfwCursorEnterCallbackI(SystemEventProcessor processor)
      Creates default GLFWCursorEnterCallback.
      Returns:
      the GLFWCursorEnterCallback.
    • createDefaultGlfwCharModsCallbackI

      static org.lwjgl.glfw.GLFWCharModsCallbackI createDefaultGlfwCharModsCallbackI(SystemEventProcessor processor)
      Creates default GLFWCharModsCallback.
      Returns:
      the GLFWCharModsCallback.
    • createDefaultGlfwScrollCallbackI

      static org.lwjgl.glfw.GLFWScrollCallbackI createDefaultGlfwScrollCallbackI(SystemEventProcessor processor)
      Creates default GLFWScrollCallback.
      Returns:
      the GLFWScrollCallback.
    • createDefaultGlfwKeyCallbackI

      static org.lwjgl.glfw.GLFWKeyCallbackI createDefaultGlfwKeyCallbackI(SystemEventProcessor processor)
      Creates default GLFWKeyCallback.
      Returns:
      the GLFWKeyCallback.
    • createDefaultGlfwDropCallbackI

      static org.lwjgl.glfw.GLFWDropCallbackI createDefaultGlfwDropCallbackI(SystemEventProcessor processor)
      Creates default GLFWDropCallback.
      Returns:
      the GLFWDropCallback.
    • createDefaultGlfwCharCallbackI

      static org.lwjgl.glfw.GLFWCharCallbackI createDefaultGlfwCharCallbackI(SystemEventProcessor processor)
      Creates default GLFWCharCallback.
      Returns:
      the GLFWCharCallback.
    • processEvents

      void processEvents(Frame frame, Context context)
      Used to process a bunch of events that already pushed to this event processor.
      Parameters:
      frame - target frame for events.
      context - context.
    • pushEvent

      void pushEvent(SystemEvent event)
      Push event.
      Parameters:
      event - the event
    • hasEvents

      boolean hasEvents()
      Returns true if there are events that should be processed.
      Returns:
      true if there are events that should be processed.