sily.terminal.input

Undocumented in source.

Members

Aliases

Button
alias Button = MouseButton

Mouse buttons

ButtonState
alias ButtonState = MouseButtonState

Mouse button state

Input
alias Input = InputEvent

Input event (keypress)

Key
alias Key = InputKey

Normal input keys

Mod
alias Mod = InputMod

Input mod keys (ctrl, shift, alt)

Enums

InputKey
enum InputKey

Normal input keys

InputMod
enum InputMod

Input mod keys (ctrl, shift, alt)

MouseButton
enum MouseButton

Mouse buttons

MouseButtonState
enum MouseButtonState

Mouse button state

Functions

discardAll
void discardAll()

Clears input queue

ikey
Input ikey(uint key, uint mod, ButtonState state)
Input ikey(Key key, uint mod, ButtonState state)

Returns new InputKey with set mod keys

mouseButtonState
ButtonState mouseButtonState(Button b)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseDisable
void mouseDisable()

Enables/disables mouse input capture

mouseEnable
void mouseEnable()

Enables/disables mouse input capture

mousePosition
uvec2 mousePosition()
Undocumented in source. Be warned that the author may not have intended to support it.
peekEvent
Input peekEvent()

Add normal discard? Returns last element and removes it from queue if remove is true

pollEvent
bool pollEvent()

Buffers input from getch

queueEmpty
bool queueEmpty()

Returns true if there's still input in buffer

queueHas
bool queueHas(Input key)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

InputEvent
struct InputEvent

Input event (keypress)

Meta