FlixelInputManager
View sourceinterface
org.flixelgdx.input.FlixelInputManager
public interface FlixelInputManager
Shared per-frame contract for polled input managers (keyboard, mouse, gamepads).
Call FlixelInputManager.update() once near the start of the frame, then FlixelInputManager.endFrame() after game logic and rendering so edge-triggered helpers (for example justPressed) stay valid for the full frame, matching FlixelGame.
Methods
update()
public void update()
Reads hardware state and refreshes internal snapshots for this frame.
endFrame()
public void endFrame()
Finalizes this frame after gameplay and draw hooks run. Typically, it copies the current snapshot into the previous snapshot used on the next frame for edge detection.
reset()
public default void reset()
Clears internal state. Default implementation does nothing.