Class ScrollComputerAction
A scroll action.
public sealed class ScrollComputerAction : IComputerAction
- Inheritance
-
ScrollComputerAction
- Implements
- Inherited Members
Constructors
ScrollComputerAction()
public ScrollComputerAction()
ScrollComputerAction(Coordinate, Coordinate)
public ScrollComputerAction(Coordinate position, Coordinate scrollDistance)
Parameters
position
CoordinatescrollDistance
Coordinate
Properties
ScrollX
The horizontal scroll distance.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("scroll_x")]
public int ScrollX { get; }
Property Value
ScrollY
The vertical scroll distance.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("scroll_y")]
public int ScrollY { get; }
Property Value
Type
Specifies the event type.For a scroll action, this property is always set to scroll
.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("type")]
public ComputerActionType Type { get; }
Property Value
X
The x-coordinate where the scroll occurred.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("x")]
public int X { get; }
Property Value
Y
The y-coordinate where the scroll occurred.
[JsonInclude]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonPropertyName("y")]
public int Y { get; }