# `Plushie.Type.MouseButton`
[🔗](https://github.com/plushie-ui/plushie-elixir/blob/v0.7.2/lib/plushie/type/mouse_button.ex#L1)

Event field type for mouse buttons.

Parses wire-format mouse button strings into atoms.

## Examples

    iex> Plushie.Type.MouseButton.parse("left")
    {:ok, :left}

    iex> Plushie.Type.MouseButton.parse("right")
    {:ok, :right}

    iex> Plushie.Type.MouseButton.parse("unknown")
    :error

# `parse`

```elixir
@spec parse(value :: term()) ::
  {:ok, :left | :right | :middle | :back | :forward} | :error
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
