The abstract base class for all binding sources. A binding source can be bound to an action and provides an input source. It essentially represents a control bound to an action, whether it be a controller button, a key or combination of keys, or a mouse button, etc. An action may have multiple binding sources bound. An InputDevice may serve as context for a binding source, especially in the case of controllers. For example, the binding source may be "Left Trigger," but when querying a value for the binding, a specific InputDevice must be provided. Not all bindings require an input device. Keyboard or mouse bindings do not.
More...
|
abstract string | Name [get] |
| Gets a textual representation of the binding source. More...
|
|
abstract string | DeviceName [get] |
| Gets the name of the device this binding source currently represents. More...
|
|
abstract InputDeviceClass | DeviceClass [get] |
| Gets the class of device this binding source currently represents. More...
|
|
abstract InputDeviceStyle | DeviceStyle [get] |
| Gets the style of device this binding source currently represents. More...
|
|
abstract BindingSourceType | BindingSourceType [get] |
|
The abstract base class for all binding sources. A binding source can be bound to an action and provides an input source. It essentially represents a control bound to an action, whether it be a controller button, a key or combination of keys, or a mouse button, etc. An action may have multiple binding sources bound. An InputDevice may serve as context for a binding source, especially in the case of controllers. For example, the binding source may be "Left Trigger," but when querying a value for the binding, a specific InputDevice must be provided. Not all bindings require an input device. Keyboard or mouse bindings do not.
◆ Equals() [1/2]
◆ Equals() [2/2]
override bool Equals |
( |
object |
obj | ) |
|
Determines whether the specified object is equal to the current BindingSource.
- Parameters
-
- Returns
true
if the specified object is equal to the current BindingSource; otherwise, false
.
◆ GetHashCode()
override int GetHashCode |
( |
| ) |
|
Serves as a hash function for a BindingSource object.
- Returns
- A hash code for this instance that is suitable for use in hashing algorithms and data structures such as a hash table.
◆ GetState()
◆ GetValue()
◆ operator!=()
Determines whether the specified binding sources are not equal.
- Parameters
-
a | The first binding source to compare. |
b | The second binding source to compare. |
- Returns
true
if the specified binding sources are not equal; otherwise, false
.
◆ operator==()
Determines whether the specified binding sources are equal.
- Parameters
-
a | The first binding source to compare. |
b | The second binding source to compare. |
- Returns
true
if the specified binding sources are equal; otherwise, false
.
◆ DeviceClass
abstract InputDeviceClass DeviceClass |
|
get |
Gets the class of device this binding source currently represents.
The class of the device.
◆ DeviceName
abstract string DeviceName |
|
get |
Gets the name of the device this binding source currently represents.
The name of the device.
◆ DeviceStyle
abstract InputDeviceStyle DeviceStyle |
|
get |
Gets the style of device this binding source currently represents.
The style of the device.
◆ Name
Gets a textual representation of the binding source.
The name.
The documentation for this class was generated from the following file:
- Assets/InControl/Source/Binding/BindingSource.cs