Skip to content

GUI Input

App: apps/gui_input/

Shows live mouse position, button state, wheel, key state, key-just-pressed, modifiers, and window size — useful for debugging input.

Terminal window
% ./plume3d gui_input

or

Terminal window
% ./../plume3d .
  • One GUI window that updates every frame with:
    • Mouse: Input.mouseX(), Input.mouseY()
    • Buttons: Input.mouseLeft(), Input.mouseRight()
    • Wheel: Input.mouseWheelX(), Input.mouseWheelY()
    • Key: Input.key("a"), Input.keyJustPressed("a")
    • Modifiers: Input.modShift(), Input.modCtrl()
    • Window: Window.getWidth(), Window.getHeight()
  • GuibeginWindow, layoutRowDynamic, label, endWindow.
  • InputmouseX, mouseY, mouseLeft, mouseRight, mouseWheelX, mouseWheelY, key, keyJustPressed, modShift, modCtrl.
  • WindowgetWidth, getHeight.