Tool GlovePIE Controller Script /w Inventory Support

AkBKukU

Terrarian
Sometimes it's nice to just kick back, chill, and play with a controller. While the XInput GamePad Support Mod does a good job it's nice to have alternatives.

This is not a mod. It is run in the standalone GlovePIE scripting program. Updating it to work with new versions of the game takes minutes.

Features:
  • Configurable game controller input. Default is show below using XInput but can be mapped to anything GlovePIE supports (ex. Wiimote).
  • No modding or coding knowledge required. Just open with GLovePIE and run.
  • Inventory Mode: The cursor moves in the grid for the inventory. No need to move items like a mouse.
  • Auto Tunneling: The player moves in the four cardinal directions while being able to toggle the action button. Can be used to move automatically while going through inventory.
  • Aim cursor: Similar to the console versions. Hide cursor when not using stick.
  • Analog Movement: Works by pulsing direction key on and off over a set duration of time. Great for building sky bridges
  • Keyboard shortcuts for all new functions.
Default Controls
StandardLayout.png

InvLayout.png
AutoTunnelLayout.png
All controls can be rebound in code with ease.

Video
Options:
  • cursorCenterDistance - The distance from the center the cursor can go out in aim mode.
  • rightDeadZone - The amount of dead zone the right stick should have for hiding the cursor in aim mode
  • leftDeadZone - Left stick dead zone
  • mouseMoveSpeed - The speed the mouse cursor moves in manual mode
  • fakeAnalog - Enables fake analog mode.
  • fakeAnalogExponential - Uses square root to raise the value on a scale to speed up faster.
  • fakeAnalogTickSpeed - Full duratation of a "tick" in milliseconds in fake analog mode.
  • fakeAnalogMultiplier - Multiplied by the analog signal to set sensitivity.
  • aimCenterX - X Center for the cursor in aim mode. Default is center screen.
  • aimCenterY - Y Center for the cursor in aim mode. Default is center screen.
  • leftStickAim - Point in movement direction in aim mode when not using right stick
  • invMiniMap - True if you use the mini map. Affects the inventory cursor
  • windowedOffSet - Amount to add to y position values to offset windowed mode. set to 0 to disable

If this seems like something you would like to try you can download the script from the Github repo or directly here.
 
It wasn't setup to use direct input devices such as those when you asked that, so I added defaults for it. Direct input devices, such as older logitech controllers and ps4 controllers without drivers, will now work without modifying the code. Not all direct input devices use the same button layout though so adjusting the script may be needed.

As a side note, if you are using a DS3 or DS4 you may want to get an XInput wrapper for them to make them easier to use.
 
Back
Top Bottom