InControl API Reference
NativeInputDevice Class Reference
Inheritance diagram for NativeInputDevice:
InputDevice

Public Member Functions

override void Update (ulong updateTick, float deltaTime)
 
override bool ReadRawButtonState (int index)
 
override float ReadRawAnalogValue (int index)
 
override void Vibrate (float leftMotor, float rightMotor)
 
override void SetLightColor (float red, float green, float blue)
 
override void SetLightFlash (float flashOnDuration, float flashOffDuration)
 
string GetAppleGlyphNameForControl (InputControlType controlType)
 
bool HasSameVendorID (InputDeviceInfo deviceInfo)
 
bool HasSameProductID (InputDeviceInfo deviceInfo)
 
bool HasSameVersionNumber (InputDeviceInfo deviceInfo)
 
bool HasSameLocation (InputDeviceInfo deviceInfo)
 
bool HasSameSerialNumber (InputDeviceInfo deviceInfo)
 
- Public Member Functions inherited from InputDevice
 InputDevice (string name)
 
 InputDevice (string name, bool rawSticks)
 
bool HasControl (InputControlType controlType)
 
InputControl GetControl (InputControlType controlType)
 Gets the control with the specified control type. If the control does not exist, InputControl.Null is returned. More...
 
InputControl GetControlByName (string controlName)
 
InputControl AddControl (InputControlType controlType, string handle)
 
InputControl AddControl (InputControlType controlType, string handle, float lowerDeadZone, float upperDeadZone)
 
void ClearInputState ()
 
void UpdateLeftStickWithValue (Vector2 value, ulong updateTick, float deltaTime)
 
void UpdateLeftStickWithRawValue (Vector2 value, ulong updateTick, float deltaTime)
 
void CommitLeftStick ()
 
void UpdateRightStickWithValue (Vector2 value, ulong updateTick, float deltaTime)
 
void UpdateRightStickWithRawValue (Vector2 value, ulong updateTick, float deltaTime)
 
void CommitRightStick ()
 
void Commit (ulong updateTick, float deltaTime)
 
bool LastInputAfter (InputDevice device)
 
void RequestActivation ()
 
void Vibrate (float intensity)
 
void StopVibration ()
 
void SetLightColor (Color color)
 
void StopLightFlash ()
 
void TakeSnapshot ()
 
UnknownDeviceControl GetFirstPressedAnalog ()
 
UnknownDeviceControl GetFirstPressedButton ()
 

Properties

DeviceHandle Handle [get]
 
InputDeviceInfo Info [get]
 
override bool IsSupportedOnThisPlatform [get]
 
override bool IsKnown [get]
 
override int NumUnknownButtons [get]
 
override int NumUnknownAnalogs [get]
 
- Properties inherited from InputDevice
string Name [get, protected set]
 
string Meta [get, protected set]
 
int SortOrder [get, protected set]
 
InputDeviceClass DeviceClass [get, protected set]
 
InputDeviceStyle DeviceStyle [get, protected set]
 
Guid GUID [get]
 
ulong LastInputTick [get]
 
bool IsActive [get]
 
bool IsAttached [get]
 
bool RawSticks [get]
 
ReadOnlyCollection< InputControlControls [get, protected set]
 
InputControl[] ControlsByTarget [get]
 
TwoAxisInputControl LeftStick [get]
 
TwoAxisInputControl RightStick [get]
 
TwoAxisInputControl DPad [get]
 
InputControlType LeftCommandControl [get]
 
InputControlType RightCommandControl [get]
 
AnalogSnapshotEntry[] AnalogSnapshot [get, set]
 
InputControl this[InputControlType controlType] [get]
 Gets the control with the specified control type. If the control does not exist, InputControl.Null is returned. More...
 
virtual bool IsSupportedOnThisPlatform [get]
 
virtual bool IsKnown [get]
 
bool IsUnknown [get]
 
bool MenuIsPressed [get]
 
bool MenuWasPressed [get]
 
bool MenuWasReleased [get]
 
bool CommandIsPressed [get]
 
bool CommandWasPressed [get]
 
bool CommandWasReleased [get]
 
InputControl AnyButton [get]
 
bool AnyButtonIsPressed [get]
 
bool AnyButtonWasPressed [get]
 
bool AnyButtonWasReleased [get]
 
TwoAxisInputControlDirection [get]
 
InputControl?? LeftStickUp [get]
 
InputControl?? LeftStickDown [get]
 
InputControl?? LeftStickLeft [get]
 
InputControl?? LeftStickRight [get]
 
InputControl?? RightStickUp [get]
 
InputControl?? RightStickDown [get]
 
InputControl?? RightStickLeft [get]
 
InputControl?? RightStickRight [get]
 
InputControl?? DPadUp [get]
 
InputControl?? DPadDown [get]
 
InputControl?? DPadLeft [get]
 
InputControl?? DPadRight [get]
 
InputControl?? Action1 [get]
 
InputControl?? Action2 [get]
 
InputControl?? Action3 [get]
 
InputControl?? Action4 [get]
 
InputControl?? LeftTrigger [get]
 
InputControl?? RightTrigger [get]
 
InputControl?? LeftBumper [get]
 
InputControl?? RightBumper [get]
 
InputControl?? LeftStickButton [get]
 
InputControl?? RightStickButton [get]
 
InputControl?? LeftStickX [get]
 
InputControl?? LeftStickY [get]
 
InputControl?? RightStickX [get]
 
InputControl?? RightStickY [get]
 
InputControl?? DPadX [get]
 
InputControl?? DPadY [get]
 
InputControl?? Command [get]
 
InputControl?? LeftCommand [get]
 
InputControl?? RightCommand [get]
 
virtual int NumUnknownAnalogs [get]
 
virtual int NumUnknownButtons [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from InputDevice
static InputControlType GetInputControlTypeByName (string inputControlName)
 
- Public Attributes inherited from InputDevice
bool Passive
 When a device is passive, it will never be considered an active device. This may be useful if you want a device to be accessible, but not show up in places where active devices are used. Defaults to More...
 
- Static Public Attributes inherited from InputDevice
static readonly InputDevice Null = new InputDevice( "None" )
 
- Protected Member Functions inherited from InputDevice
void ClearControls ()
 
void UpdateWithState (InputControlType controlType, bool state, ulong updateTick, float deltaTime)
 
void UpdateWithValue (InputControlType controlType, float value, ulong updateTick, float deltaTime)
 

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