.NET SDK - RainwayInput.Gamepad

RainwayInput.Gamepad record

A request to bring the virtual gamepad with ID slot into the state described.

public record Gamepad : IEquatable<RainwayInput>

Public Members

namedescription
Gamepad(…)A request to bring the virtual gamepad with ID slot into the state described.
Buttons { get; set; }bitmask of pressed buttons
LeftThumbX { get; set; }ranges from -32768 (left) to 32767 (right)>
LeftThumbY { get; set; }ranges from -32768 (up) to 32767 (down)
LeftTrigger { get; set; }ranges from 0 (not pressed) to 255 (fully pressed)
RightThumbX { get; set; }ranges from -32768 (left) to 32767 (right)
RightThumbY { get; set; }ranges from -32768 (up) to 32767 (down)
RightTrigger { get; set; }ranges from 0 (not pressed) to 255 (fully pressed)
Slot { get; set; }gamepad slot

See Also