Interface SystemEventProcessor
- All Known Implementing Classes:
SystemEventProcessorImpl
public interface SystemEventProcessor
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddDefaultCallbacks(CallbackKeeper guiCallbackKeeper, SystemEventProcessor processor) Add default callbacks to callback keeper.static org.lwjgl.glfw.GLFWCharCallbackICreates default GLFWCharCallback.static org.lwjgl.glfw.GLFWCharModsCallbackICreates default GLFWCharModsCallback.static org.lwjgl.glfw.GLFWCursorEnterCallbackICreates default GLFWCursorEnterCallback.static org.lwjgl.glfw.GLFWCursorPosCallbackICreates default GLFWCursorPosCallback.static org.lwjgl.glfw.GLFWDropCallbackICreates default GLFWDropCallback.static org.lwjgl.glfw.GLFWFramebufferSizeCallbackICreates default GLFWFramebufferSizeCallback.static org.lwjgl.glfw.GLFWKeyCallbackICreates default GLFWKeyCallback.static org.lwjgl.glfw.GLFWMouseButtonCallbackICreates default GLFWMouseButtonCallback.static org.lwjgl.glfw.GLFWScrollCallbackICreates default GLFWScrollCallback.static org.lwjgl.glfw.GLFWWindowCloseCallbackICreates default GLFWWindowCloseCallback.static org.lwjgl.glfw.GLFWWindowFocusCallbackICreates default GLFWWindowFocusCallback.static org.lwjgl.glfw.GLFWWindowIconifyCallbackICreates default GLFWWindowIconifyCallback.static org.lwjgl.glfw.GLFWWindowPosCallbackICreates default GLFWWindowPosCallback.static org.lwjgl.glfw.GLFWWindowRefreshCallbackICreates default GLFWWindowRefreshCallback.static org.lwjgl.glfw.GLFWWindowSizeCallbackICreates default GLFWWindowSizeCallback.booleanReturns true if there are events that should be processed.voidprocessEvents(Frame frame, Context context) Used to process a bunch of events that already pushed to this event processor.voidpushEvent(SystemEvent event) Push event.
-
Method Details
-
addDefaultCallbacks
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
Used to process a bunch of events that already pushed to this event processor.- Parameters:
frame- target frame for events.context- context.
-
pushEvent
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.
-