# `Cauldron3D.Net.Events`
[🔗](https://github.com/jaman/cauldron/blob/v0.3.3/cauldron_3d_net/lib/cauldron_3d/net/events.ex#L1)

Browser input as `CauldronGPU` window events. The client (`cauldron3d.js`) sends maps
with a `"type"`; `decode/1` turns each into the event tuple a native window would send,
or `:error`. Key names are those `cauldron3d.js` reports (`"w"`, `"space"`,
`"left_shift"`, `"up"`, …); names outside that set arrive as strings.

# `decode`

```elixir
@spec decode(map()) :: {:ok, term()} | :error
```

The event a browser message describes.

---

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