TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches
Terraria.GameInput.PlayerInput Class Reference
+ Collaboration diagram for Terraria.GameInput.PlayerInput:

Classes

struct  FastUseItemMemory
 
class  MiscSettingsTEMP
 
class  SettingsForUI
 

Static Public Member Functions

static void ListenFor (string triggerName, InputMode inputmode)
 
static void ResetInputsOnActiveStateChange ()
 
static List< Keys > GetPressedKeys ()
 
static void TryEnteringFastUseModeForInventorySlot (int inventorySlot)
 
static void TryEnteringFastUseModeForMouseItem ()
 
static void TryEndingFastUse ()
 
static void EnterBuildingMode ()
 
static void ExitBuildingMode ()
 
static void VerifyBuildingMode ()
 
static void SetSelectedProfile (string name)
 
static void Initialize ()
 
static void Hook_OnEnterWorld (Player player)
 
static bool Save ()
 
static void Load ()
 
static void ManageVersion_1_3 ()
 
static void LockGamepadButtons (string TriggerName)
 
static bool IsGamepadButtonLockedFromUse (string keyName)
 
static void UpdateInput ()
 
static void UpdateMainMouse ()
 
static void CacheZoomableValues ()
 
static void CacheMousePositionForZoom ()
 
static void CacheOriginalScreenDimensions ()
 
static string ComposeInstructionsForGamepad ()
 
static string BuildCommand (string CommandText, bool Last, params List< string >[] Bindings)
 
static string GenerateInputTag_ForCurrentGamemode_WithHacks (bool tagForGameplay, string triggerName)
 
static string GenerateInputTag_ForCurrentGamemode (bool tagForGameplay, string triggerName)
 
static string GenerateInputTags_GamepadUI (string triggerName)
 
static string GenerateInputTags_Gamepad (string triggerName)
 
static void NavigatorCachePosition ()
 
static void NavigatorUnCachePosition ()
 
static void LockOnCachePosition ()
 
static void LockOnUnCachePosition ()
 
static void PrettyPrintProfiles (ref string text)
 
static void PrettyPrintProfilesOld (ref string text)
 
static void Reset (KeyConfiguration c, PresetProfiles style, InputMode mode)
 
static void SetZoom_UI ()
 
static void SetZoom_World ()
 
static void SetZoom_Unscaled ()
 
static void SetZoom_Test ()
 
static void SetZoom_MouseInWorld ()
 
static void SetDesiredZoomContext (ZoomContext context)
 
static void SetZoom_Context ()
 
static void LockVanillaMouseScroll (string myUI)
 Locks the vanilla scrollbar for the upcoming cycle when called. Autoclears in Player. Takes a string to denote that your UI has registered to lock vanilla scrolling. String does not need to be unique.
 

Static Public Attributes

static Vector2 RawMouseScale
 
static TriggersPack Triggers
 
static List< string > KnownTriggers
 
static int NavigatorRebindingLock
 
static string BlockedKey
 
static Dictionary< string, PlayerInputProfileProfiles
 
static Dictionary< string, PlayerInputProfileOriginalProfiles
 
static InputMode CurrentInputMode
 
static bool GrappleAndInteractAreShared
 
static SmartSelectGamepadPointer smartSelectPointer
 
static bool UseSteamDeckIfPossible
 
static MouseState MouseInfo
 
static MouseState MouseInfoOld
 
static int MouseX
 
static int MouseY
 
static bool LockGamepadTileUseButton
 
static List< string > MouseKeys
 
static int PreUIX
 
static int PreUIY
 
static int PreLockOnX
 
static int PreLockOnY
 
static int ScrollWheelValue
 
static int ScrollWheelValueOld
 
static int ScrollWheelDelta
 
static int ScrollWheelDeltaForUI
 
static bool GamepadAllowScrolling
 
static int GamepadScrollValue
 
static Vector2 GamepadThumbstickLeft
 
static Vector2 GamepadThumbstickRight
 
static bool WritingText
 
static bool PreventCursorModeSwappingToGamepad
 
static bool PreventFirstMousePositionGrab
 
static bool AllowExecutionOfGamepadInstructions
 

Static Package Functions

static void InsertExtraMouseButtonsIntoTriggerList (List< string > list)
 

Static Package Attributes

static bool reinitialize
 
static List< string > MouseInModdedUI
 

Properties

static string ListeningTrigger [get]
 
static bool CurrentlyRebinding [get]
 
static bool InvisibleGamepadInMenus [get]
 
static PlayerInputProfile CurrentProfile [get]
 
static KeyConfiguration ProfileGamepadUI [get]
 
static bool UsingGamepad [get]
 
static bool UsingGamepadUI [get]
 
static bool IgnoreMouseInterface [get]
 
static bool SteamDeckIsUsed [get]
 
static bool ShouldFastUseItem [get]
 
static bool InBuildingMode [get]
 
static int RealScreenWidth [get]
 
static int RealScreenHeight [get]
 
static bool CursorIsBusy [get]
 
static Vector2 OriginalScreenSize [get]
 

Events

static Action OnBindingChange
 
static Action OnActionableInput
 

Static Private Member Functions

static bool InvalidateKeyboardSwap ()
 
static void ReInitialize ()
 
static void Initialize_Inner ()
 
static void CacheOriginalInput ()
 
static bool GamePadInput ()
 
static void MouseInput ()
 
static bool KeyboardInput ()
 
static void DebugKeys (List< Keys > keys)
 
static void FixDerpedRebinds ()
 
static void FixKeysConflict (InputMode inputMode, List< string > triggers)
 
static void ResetKeyBinding (InputMode inputMode, string trigger)
 
static bool CheckRebindingProcessGamepad (string newKey)
 
static bool CheckRebindingProcessKeyboard (string newKey)
 
static void PostInput ()
 
static void HandleDpadSnap ()
 
static bool ShouldShowInstructionsForGamepad ()
 
static string GenerateGlyphList (List< string > list)
 
static string GenerateRawInputList (List< string > list)
 
static void SetZoom_Scaled (float scale)
 
static PlayerInput ()
 
static void OnReset (KeyConfiguration c, InputMode mode)
 

Static Private Attributes

static bool _canReleaseRebindingLock
 
static int _memoOfLastPoint
 
static string _listeningTrigger
 
static InputMode _listeningInputMode
 
static string _selectedProfile
 
static PlayerInputProfile _currentProfile
 
static Buttons[] ButtonsGamepad
 
static string _invalidatorCheck
 
static bool _lastActivityState
 
static FastUseItemMemory _fastUseMemory
 
static bool _InBuildingMode
 
static int _UIPointForBuildingMode
 
static int _originalMouseX
 
static int _originalMouseY
 
static int _originalLastMouseX
 
static int _originalLastMouseY
 
static int _originalScreenWidth
 
static int _originalScreenHeight
 
static ZoomContext _currentWantedZoom
 
static List< string > _buttonsLocked
 
static int[] DpadSnapCooldown
 

Detailed Description

Definition at line 18 of file PlayerInput.cs.


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