shamansir / elm-aframe / AFrame.Components.Cursor

Cursor

fuse : Basics.Bool -> AFrame.Properties.Property

Whether cursor is fuse-based.

Default : false on desktop, true on mobile

fuseTimeout : Basics.Int -> AFrame.Properties.Property

How long to wait (in milliseconds) before triggering a fuse-based click event.

Default : 1500

rayOrigin : String -> AFrame.Properties.Property

Where the intersection ray is cast from (i.e.,entity or mouse). rayOrigin: mouse is extremely useful for VR development on a mouse and keyboard.

Default: entity

Events

downEvents : List AFrame.EventRefs.EventRef -> AFrame.Properties.Property

Array of additional events on the entity to listen to for triggering mousedown (e.g., triggerdown for vive-controls).

Default : []

upEvents : List AFrame.EventRefs.EventRef -> AFrame.Properties.Property

Array of additional events on the entity to listen to for triggering mouseup (e.g., trackpadup for daydream-controls).

Default : []

Style

mouseCursorStylesEnabled : Basics.Bool -> AFrame.Properties.Property

Whether to show pointer cursor in rayOrigin: mouse mode when hovering over entity.