terraria-cpp2il v1.4.4.9
Terraria mobile dump, with CallAnalysis (see source code). Dump with reconstucted method: https://infinitynichto.github.io/terraria-cpp2il-methodrecon
Loading...
Searching...
No Matches
InControl.UnityInputDevice Class Reference
+ Inheritance diagram for InControl.UnityInputDevice:
+ Collaboration diagram for InControl.UnityInputDevice:

Public Member Functions

 UnityInputDevice (int joystickId, string joystickName)
 
void RefreshProfile ()
 
 UnityInputDevice (InputDeviceProfile deviceProfile, int joystickId, string joystickName)
 
override void Update (ulong updateTick, float deltaTime)
 
override bool ReadRawButtonState (int index)
 
override float ReadRawAnalogValue (int index)
 
bool HasControl (InputControlType controlType)
 
InputControl GetControl (InputControlType controlType)
 
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)
 
virtual void Vibrate (float leftMotor, float rightMotor)
 
void Vibrate (float intensity)
 
void StopVibration ()
 
virtual void SetLightColor (float red, float green, float blue)
 
void SetLightColor (Color color)
 
virtual void SetLightFlash (float flashOnDuration, float flashOffDuration)
 
void StopLightFlash ()
 
void TakeSnapshot ()
 
UnknownDeviceControl GetFirstPressedAnalog ()
 
UnknownDeviceControl GetFirstPressedButton ()
 

Static Public Member Functions

static InputControlType GetInputControlTypeByName (string inputControlName)
 

Public Attributes

bool Passive
 

Static Public Attributes

const int MaxDevices = 10
 
const int MaxButtons = 20
 
const int MaxAnalogs = 20
 
static readonly InputDevice Null
 

Protected Member Functions

void AddAliasControls ()
 
void ClearControls ()
 
void UpdateWithState (InputControlType controlType, bool state, ulong updateTick, float deltaTime)
 
void UpdateWithValue (InputControlType controlType, float value, ulong updateTick, float deltaTime)
 

Package Functions

void OnAttached ()
 
void OnDetached ()
 
void RequestActivation ()
 

Properties

int JoystickId [get, set, private set]
 
InputDeviceProfile Profile [get, set]
 
override bool IsSupportedOnThisPlatform [get, set]
 
override bool IsKnown [get, set]
 
override int NumUnknownButtons [get, set]
 
override int NumUnknownAnalogs [get, set]
 
string Name [get, set, protected set]
 
string Meta [get, set, protected set]
 
int SortOrder [get, set, protected set]
 
InputDeviceClass DeviceClass [get, set, protected set]
 
InputDeviceStyle DeviceStyle [get, set, protected set]
 
Guid GUID [get, set, private set]
 
ulong LastInputTick [get, set, private set]
 
bool IsActive [get, set, private set]
 
bool IsAttached [get, set, private set]
 
bool RawSticks [protected get, set, private set]
 
ReadOnlyCollection< InputControlControls [get, set, protected set]
 
InputControl[] ControlsByTarget [protected get, set, private set]
 
TwoAxisInputControl LeftStick [get, set, private set]
 
TwoAxisInputControl RightStick [get, set, private set]
 
TwoAxisInputControl DPad [get, set, private set]
 
InputDevice.AnalogSnapshotEntry[] AnalogSnapshot [get, set]
 
InputControl this[InputControlType controlType] [get, set]
 
bool IsUnknown [get, set]
 
bool MenuIsPressed [get, set]
 
bool MenuWasPressed [get, set]
 
bool MenuWasReleased [get, set]
 
bool CommandIsPressed [get, set]
 
bool CommandWasPressed [get, set]
 
bool CommandWasReleased [get, set]
 
InputControl AnyButton [get, set]
 
bool AnyButtonIsPressed [get, set]
 
bool AnyButtonWasPressed [get, set]
 
bool AnyButtonWasReleased [get, set]
 
TwoAxisInputControl Direction [get, set]
 
InputControl LeftStickUp [get, set]
 
InputControl LeftStickDown [get, set]
 
InputControl LeftStickLeft [get, set]
 
InputControl LeftStickRight [get, set]
 
InputControl RightStickUp [get, set]
 
InputControl RightStickDown [get, set]
 
InputControl RightStickLeft [get, set]
 
InputControl RightStickRight [get, set]
 
InputControl DPadUp [get, set]
 
InputControl DPadDown [get, set]
 
InputControl DPadLeft [get, set]
 
InputControl DPadRight [get, set]
 
InputControl Action1 [get, set]
 
InputControl Action2 [get, set]
 
InputControl Action3 [get, set]
 
InputControl Action4 [get, set]
 
InputControl LeftTrigger [get, set]
 
InputControl RightTrigger [get, set]
 
InputControl LeftBumper [get, set]
 
InputControl RightBumper [get, set]
 
InputControl LeftStickButton [get, set]
 
InputControl RightStickButton [get, set]
 
InputControl LeftStickX [get, set]
 
InputControl LeftStickY [get, set]
 
InputControl RightStickX [get, set]
 
InputControl RightStickY [get, set]
 
InputControl DPadX [get, set]
 
InputControl DPadY [get, set]
 
InputControl Command [get, set]
 

Private Member Functions

void RemoveAliasControls ()
 
void RemoveControl (InputControlType controlType)
 
void ProcessLeftStick (ulong updateTick, float deltaTime)
 
void ProcessRightStick (ulong updateTick, float deltaTime)
 
void ProcessDPad (ulong updateTick, float deltaTime)
 
void ExpireControlCache ()
 

Static Private Member Functions

static void SetupAnalogQueries ()
 
static void SetupButtonQueries ()
 

Private Attributes

int< JoystickIdk__BackingField
 
readonly InputDeviceProfile profile
 
readonly List< InputControlcontrols
 
InputControl cachedLeftStickUp
 
InputControl cachedLeftStickDown
 
InputControl cachedLeftStickLeft
 
InputControl cachedLeftStickRight
 
InputControl cachedRightStickUp
 
InputControl cachedRightStickDown
 
InputControl cachedRightStickLeft
 
InputControl cachedRightStickRight
 
InputControl cachedDPadUp
 
InputControl cachedDPadDown
 
InputControl cachedDPadLeft
 
InputControl cachedDPadRight
 
InputControl cachedAction1
 
InputControl cachedAction2
 
InputControl cachedAction3
 
InputControl cachedAction4
 
InputControl cachedLeftTrigger
 
InputControl cachedRightTrigger
 
InputControl cachedLeftBumper
 
InputControl cachedRightBumper
 
InputControl cachedLeftStickButton
 
InputControl cachedRightStickButton
 
InputControl cachedLeftStickX
 
InputControl cachedLeftStickY
 
InputControl cachedRightStickX
 
InputControl cachedRightStickY
 
InputControl cachedDPadX
 
InputControl cachedDPadY
 
InputControl cachedCommand
 

Static Private Attributes

static string[,] analogQueries
 
static string[,] buttonQueries
 

Detailed Description

Definition at line 10 of file UnityInputDevice.cs.


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