HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

.NET SDK - InputBody

InputBody class

The body of an input event.

public sealed class InputBody

Public Members

namedescription
HeldKeys { get; }The RainwayVirtualKey keys that were held down during this input event.
Tag { get; }A tag identifying the type of input.
AsGamepadReport()Retrieve the input as a gamepad report.
AsGamepadRumble()Retrieve the input as a gamepad rumble.
AsKeyboardInput()Retrieve the input as a keyboard input.
AsLogicalInput()Retrieve the input as a logical input.
AsMouseAbsolute()Retrieve the input as a mouse absolute.
AsMouseClick()Retrieve the input as a mouse click.
AsMouseRelative()Retrieve the input as a mouse relative.
AsMouseScroll()Retrieve the input as a mouse scroll.
AsPenAbsolute()Retrieve the input as a pen absolute.
AsSetClipboardText()Retrieve the input as a set clipboard text.
AsTouchesAbsolute()Retrieve the input as a touches absolute.
AsViewportResize()Retrieve the input as a viewport resize.
class GamepadReportAn input report describing gamepad input.
class GamepadRumbleAn input report describing gamepad rumble.
class KeyboardInputAn input report describing keyboard input.
class LogicalInputAn input report describing logical input.
class MouseAbsoluteAn input report describing absolute mouse position input.
class MouseClickAn input report describing mouse click input.
class MouseRelativeAn input report describing relative mouse position input.
class MouseScrollAn input report describing mouse scroll input.
class PenAbsoluteAn input report describing absolute positioned pen input.
class SetClipboardTextAn input report describing clipboard text changes.
class TouchesAbsoluteAn input report describing absolute positioned touch input.
class ViewportResizeAn input report describing viewport resize changes.

See Also