Click or drag to resize

InputStateExt Class

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

Various convenience extension methods for InputState.
Inheritance Hierarchy
SystemObject
  RavingBots.MultiInputInputStateExt

Namespace:  RavingBots.MultiInput
Assembly:  RavingBots.MultiInput (in RavingBots.MultiInput.dll) Version: 0.12
Syntax
C#
public static class InputStateExt

The InputStateExt type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCode exampleFindFirst(InputState, FuncIDevice, IVirtualAxis, Boolean)
Public methodStatic memberCode exampleFindFirst(InputState, FuncIDevice, IVirtualAxis, Boolean, InputCode)
Public methodStatic memberCode exampleFindFirst(InputState, FuncIDevice, IVirtualAxis, Boolean, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirst(InputState, IDevice, IVirtualAxis, FuncIDevice, IVirtualAxis, Boolean)
Queries all axes on all devices, and returns first for which a given predicate returns true. If you don't require a custom predicate (i.e. you just want to check IsHeld or similar), you should use simpler variants like FindFirstHeld(InputState, IDevice, IVirtualAxis).
Public methodStatic memberCode exampleFindFirst(InputState, IDevice, IVirtualAxis, FuncIDevice, IVirtualAxis, Boolean, InputCode)
Public methodStatic memberCode exampleFindFirstDown(InputState)
Public methodStatic memberCode exampleFindFirstDown(InputState, InputCode)
Overload of FindFirstDown(InputState, IDevice, IVirtualAxis) that only returns the device and limits the search to selected axes, given as params argument. Use this form if you only need the device object and you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstDown(InputState, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirstDown(InputState, IDevice, IVirtualAxis)
Queries all axes on all devices, and returns the first for which IsDown is true.
Public methodStatic memberCode exampleFindFirstDown(InputState, IDevice, IVirtualAxis, InputCode)
Overload of FindFirstDown(InputState, IDevice, IVirtualAxis) that limits the search to selected axes, given as params argument. Use this form if you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstDown(InputState, IDevice, IVirtualAxis, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirstHeld(InputState)
Public methodStatic memberCode exampleFindFirstHeld(InputState, InputCode)
Overload of FindFirstHeld(InputState, IDevice, IVirtualAxis) that only returns the device and limits the search to selected axes, given as params argument. Use this form if you only need the device object and you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstHeld(InputState, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirstHeld(InputState, IDevice, IVirtualAxis)
Queries all axes on all devices, and returns the first for which IsHeld is true.
Public methodStatic memberCode exampleFindFirstHeld(InputState, IDevice, IVirtualAxis, InputCode)
Overload of FindFirstHeld(InputState, IDevice, IVirtualAxis) that limits the search to selected axes, given as params argument. Use this form if you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstHeld(InputState, IDevice, IVirtualAxis, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirstUp(InputState)
Public methodStatic memberCode exampleFindFirstUp(InputState, InputCode)
Overload of FindFirstUp(InputState, IDevice, IVirtualAxis) that only returns the device and limits the search to selected axes, given as params argument. Use this form if you only need the device object and you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstUp(InputState, IEnumerableInputCode)
Public methodStatic memberCode exampleFindFirstUp(InputState, IDevice, IVirtualAxis)
Queries all axes on all devices, and returns the first for which IsUp is true.
Public methodStatic memberCode exampleFindFirstUp(InputState, IDevice, IVirtualAxis, InputCode)
Overload of FindFirstUp(InputState, IDevice, IVirtualAxis) that limits the search to selected axes, given as params argument. Use this form if you're specifying input codes manually.
Public methodStatic memberCode exampleFindFirstUp(InputState, IDevice, IVirtualAxis, IEnumerableInputCode)
Top
Fields
  NameDescription
Public fieldStatic memberAllAxes
Collection containing all values from InputCode enumeration, provided for convenience.
Top
See Also