shamansir / elm-aframe / AFrame.Events

Events

For the moment there is no out-of-the-box decoders for the events handling since it's already the huge list of their kinds and the things they could contain would be dozen times longer. So we would better suggest to implement them on demand and then, if possible, reuse, and then optionally include in this package.

on : AFrame.EventRefs.EventRef -> Json.Decode.Decoder msg -> Html.Attribute msg

Create a handler using event reference from AFrame.EventRefs. Custom decoder is needed.

custom : AFrame.EventRefs.EventRef -> Json.Decode.Decoder { message : msg, stopPropagation : Basics.Bool, preventDefault : Basics.Bool } -> Html.Attribute msg

Create a custom handler using event reference from AFrame.EventRefs.