VirtualAxis Class |
[This is preliminary documentation and is subject to change.]
Namespace: RavingBots.MultiInput
public sealed class VirtualAxis : IVirtualAxis
The VirtualAxis type exposes the following members.
Name | Description | |
---|---|---|
VirtualAxis |
Constructs a new virtual axis, optionally setting Code property.
|
Name | Description | |
---|---|---|
Code | InputCode associated with this axis, if any. Informative only.
| |
HasChanged | true if value on this axis has changed from the previous frame.
| |
IsDown | ||
IsHeld | true if this axis is not in the rest state in the current frame
(i.e. Value is not zero).
| |
IsUp | ||
NextValue |
Uncommitted value on this axis for the next frame. May change multiple times
during a single frame until committed.
| |
PreviousValue |
Value on this axis in the previous frame.
| |
Value |
Value on this axis in the current frame.
|
Name | Description | |
---|---|---|
Add |
Adds a value to the uncommitted next frame. Convenience method for axes
that accumulate input in-between frames.
| |
Commit |
Commits changes to the next frame.
| |
Set(Boolean) |
Sets the next frame value. Convenience method for axes representing
digital buttons.
| |
Set(Single) |
Sets the next frame value.
|