PointerEvent

An event that's generated when using the Pointer. (see Pointer.Down or Pointer.Up)

Functions

Casts a ray from PointerEvent screen coordinates and returns an Impact (can be nil).

The Impact contains information about the kind of thing that's been hit.

Pointer.Down = function( pointerEvent )
    local impact = pointerEvent:CastRay()
    if impact.Block ~= nil then
      print("block hit:", impact.Block)
    end
end

Properties

Horizontal delta, not 0 when moving the pointer (see Pointer.Drag or Pointer.Drag2)

Vertical delta, not 0 when moving the pointer (see Pointer.Drag or Pointer.Drag2)

Horizontal position of the pointer when the event happened.

Vertical position of the pointer when the event happened.