Scenic v0.10.2 Scenic.ViewPort.Input View Source

The main helpers and organizers for input.

Resizing is temporarily not supported.

Link to this section Summary

Link to this section Types

Link to this type

class() View Source
class() ::
  :codepoint
  | :key
  | :cursor_button
  | :cursor_scroll
  | :cursor_pos
  | :viewport_enter
  | :viewport_exit

Link to this type

t() View Source
t() ::
  {:codepoint, {codepoint :: String.t(), mods :: integer()}}
  | {:key, {key :: String.t(), :press | :release | :repeat, mods :: integer()}}
  | {:cursor_button,
     {:left | :center | :right, :press | :release, mods :: integer(),
      position :: Scenic.Math.point()}}
  | {:cursor_scroll,
     {offset :: Scenic.Math.point(), position :: Scenic.Math.point()}}
  | {:cursor_pos, position :: Scenic.Math.point()}
  | {:viewport_enter, position :: Scenic.Math.point()}
  | {:viewport_exit, position :: Scenic.Math.point()}

Link to this section Functions