InputEvent.xformedBy

Returns a copy of the given input event which has been offset by local_ofs and transformed by xform. Relevant for events of type InputEventMouseButton, InputEventMouseMotion, InputEventScreenTouch, InputEventScreenDrag, InputEventMagnifyGesture and InputEventPanGesture.

struct InputEvent
@nogc nothrow const
xformedBy
(
in Transform2D xform
,
in Vector2 local_ofs = Vector2(0, 0)
)

Meta