Click or drag to resize
Binding Class
Represents a input binding
Inheritance Hierarchy
SystemObject
  Codolith.InputManagerBinding

Namespace: Codolith.InputManager
Assembly: Codolith.InputManager (in Codolith.InputManager.dll) Version: 1.0.5438.34543
Syntax
C#
public class Binding

The Binding type exposes the following members.

Constructors
  NameDescription
Public methodBinding
Initializes a new instance of the Binding class with the given name
Top
Methods
  NameDescription
Public methodStatic memberAddAvailableAxis
Adds an available Axis with its RecognizionTreshold (how far the axis has to be changed so that it will be assigned to the binding)
Public methodAssignToNextInput
Causes this Binding to assign itself to the next Input that is done by the user (Be it moving an axis or pressing some buttons)
Public methodAssignToNextInput(ActionBinding)
Causes this Binding to assign itself to the next Input that is done by the user (Be it moving an axis or pressing some buttons). Also accepts a callback that will be called if the binding was assigned, or the CancelAssignmentKey was pressed
Public methodAssignToNone
Assigns this Binding to no input
Protected methodRaiseNewInputAssigned
Calls the inputAssignedCallback if one was given.
Protected methodRaiseOnUpdate
Raises the OnUpdate event.
Public methodUpdate
Updates this instance.
Top
Properties
  NameDescription
Public propertyStatic memberAvailableAxes
Dictionary of the Axes that can be assigned and their RecognizionTreshold
Public propertyStatic memberAvailableKeyCodes
Gets the available key codes, that can be assigned to a Binding. (This also includes the CancelAssignmentKey, which cant be assigned)
Public propertyAxis
Gives you the Axis that is assigned to this Binding. when set, it will also set the BindingType to Axis
Public propertyBindingGroup
The BindingGroup that this Binding is in, or null if this Binding was not yet added to one
Public propertyBindingType
The type of the Binding
Public propertyStatic memberCancelAssignmentKey
Determines they Button that will be used to cancel an assignment. This Button can not be assigned to any Binding
Public propertyEnabled
Returns if this Binding will be Updated. returns ThisEnabled && GroupEnabled
Public propertyGroupEnabled
Tells you if the Group of this Binding is enabled. If the Group is not yet set, it returns false
Public propertyKeys
Gives you the keys that are assigned to this Binding. When set, it will also set the BindingType to Keys
Public propertyName
The Name of this Binding. Avoid to use the same name twice!
Public propertyState
Gives you the State of this Binding as bool. When set it checks if the State has changed and triggers the StateChanged event
Public propertyThisEnabled
Determines if this Binding is enabled
Public propertyValue
Gives you the balue of this Binding as float. When set it checks if the Value has changed and triggers the ValueChanged event
Top
Events
  NameDescription
Public eventOnUpdate
This will be triggered every time that Update() is called, even if the Binding isnt assigned to any input. Can be used for input that directly controls something, even if it doesnt change its state or value
Public eventStateChanged
Is triggered when the State of this Binding changes
Public eventValueChanged
Is triggered when the Value of this Binding changes
Top
See Also