Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.GameInput.PlayerInput Class Reference

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 Public Attributes

static Vector2 RawMouseScale = Vector2.One
 
static TriggersPack Triggers = new TriggersPack()
 
static List< stringKnownTriggers
 
static int NavigatorRebindingLock
 
static string BlockedKey = ""
 
static Dictionary< string, PlayerInputProfileProfiles = new Dictionary<string, PlayerInputProfile>()
 
static Dictionary< string, PlayerInputProfileOriginalProfiles = new Dictionary<string, PlayerInputProfile>()
 
static InputMode CurrentInputMode = InputMode.Keyboard
 
static bool GrappleAndInteractAreShared
 
static SmartSelectGamepadPointer smartSelectPointer = new SmartSelectGamepadPointer()
 
static bool UseSteamDeckIfPossible
 
static MouseState MouseInfo
 
static MouseState MouseInfoOld
 
static int MouseX
 
static int MouseY
 
static bool LockGamepadTileUseButton = false
 
static List< stringMouseKeys = new List<string>()
 
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 = Vector2.Zero
 
static Vector2 GamepadThumbstickRight = Vector2.Zero
 
static bool WritingText
 
static bool PreventCursorModeSwappingToGamepad = false
 
static bool PreventFirstMousePositionGrab = false
 
static bool AllowExecutionOfGamepadInstructions = true
 

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 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 Private Attributes

static bool _canReleaseRebindingLock = true
 
static int _memoOfLastPoint = -1
 
static string _listeningTrigger
 
static InputMode _listeningInputMode
 
static string _selectedProfile
 
static PlayerInputProfile _currentProfile
 
static Buttons[] ButtonsGamepad = (Buttons[])Enum.GetValues(typeof(Buttons))
 
static string _invalidatorCheck = ""
 
static bool _lastActivityState
 
static FastUseItemMemory _fastUseMemory
 
static bool _InBuildingMode
 
static int _UIPointForBuildingMode = -1
 
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 = new List<string>()
 
static int[] DpadSnapCooldown = new int[4]
 

Detailed Description

Definition at line 17 of file PlayerInput.cs.


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