InControl API Reference
UnknownDeviceBindingSource Class Reference
Inheritance diagram for UnknownDeviceBindingSource:
BindingSource

Public Member Functions

 UnknownDeviceBindingSource (UnknownDeviceControl control)
 
override float GetValue (InputDevice device)
 Read a float value from the binding source in the context of an optional InputDevice. More...
 
override bool GetState (InputDevice device)
 Read a bool value from the binding source in the context of an optional InputDevice. More...
 
override bool Equals (BindingSource other)
 Determines whether the specified BindingSource is equal to the current BindingSource. More...
 
override bool Equals (object other)
 
override int GetHashCode ()
 
override void Load (BinaryReader reader, UInt16 dataFormatVersion)
 
override void Save (BinaryWriter writer)
 
- Public Member Functions inherited from BindingSource
override bool Equals (object obj)
 Determines whether the specified object is equal to the current BindingSource. More...
 
override int GetHashCode ()
 Serves as a hash function for a BindingSource object. More...
 

Properties

UnknownDeviceControl Control [get, protected set]
 
override string Name [get]
 
override string DeviceName [get]
 
override InputDeviceClass DeviceClass [get]
 
override InputDeviceStyle DeviceStyle [get]
 
override BindingSourceType BindingSourceType [get]
 
- Properties inherited from BindingSource
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]
 

Additional Inherited Members

- Static Public Member Functions inherited from BindingSource
static bool operator== (BindingSource a, BindingSource b)
 Determines whether the specified binding sources are equal. More...
 
static bool operator!= (BindingSource a, BindingSource b)
 Determines whether the specified binding sources are not equal. More...
 

Member Function Documentation

◆ Equals()

override bool Equals ( BindingSource  other)
virtual

Determines whether the specified BindingSource is equal to the current BindingSource.

Parameters
otherThe BindingSource to compare with the current BindingSource.
Returns
true if the specified BindingSource is equal to the current BindingSource; otherwise, false.

Implements BindingSource.

◆ GetState()

override bool GetState ( InputDevice  inputDevice)
virtual

Read a bool value from the binding source in the context of an optional InputDevice.

Returns
true if the value of the binding is non-zero; otherwise false.
Parameters
inputDeviceAn input device which serves as the context for this source, if applicable. Pass in null when not applicable.

Implements BindingSource.

◆ GetValue()

override float GetValue ( InputDevice  inputDevice)
virtual

Read a float value from the binding source in the context of an optional InputDevice.

Returns
The value, usually in the range -1..1, but not necessarily, for example, in the case of mouse movement.
Parameters
inputDeviceAn input device which serves as the context for this source, if applicable. Pass in null when not applicable.

Implements BindingSource.


The documentation for this class was generated from the following file: