Click or drag to resize

VirtualAxis Class

[This is preliminary documentation and is subject to change.]

Concrete class for custom virtual axes.
Inheritance Hierarchy
SystemObject
  RavingBots.MultiInputVirtualAxis

Namespace:  RavingBots.MultiInput
Assembly:  RavingBots.MultiInput (in RavingBots.MultiInput.dll) Version: 0.12
Syntax
C#
public sealed class VirtualAxis : IVirtualAxis

The VirtualAxis type exposes the following members.

Constructors
  NameDescription
Public methodVirtualAxis
Constructs a new virtual axis, optionally setting Code property.
Top
Properties
  NameDescription
Public propertyCode
InputCode associated with this axis, if any. Informative only.
Public propertyHasChanged
true if value on this axis has changed from the previous frame.
Public propertyIsDown
true if IsHeld was false in the previous frame but isn't in this one.
Public propertyIsHeld
true if this axis is not in the rest state in the current frame (i.e. Value is not zero).
Public propertyIsUp
true if IsHeld was true in the previous frame and isn't in this one.
Public propertyNextValue
Uncommitted value on this axis for the next frame. May change multiple times during a single frame until committed.
Public propertyPreviousValue
Value on this axis in the previous frame.
Public propertyValue
Value on this axis in the current frame.
Top
Methods
  NameDescription
Public methodAdd
Adds a value to the uncommitted next frame. Convenience method for axes that accumulate input in-between frames.
Public methodCommit
Commits changes to the next frame.
Public methodSet(Boolean)
Sets the next frame value. Convenience method for axes representing digital buttons.
Public methodSet(Single)
Sets the next frame value.
Top
See Also