Skip to content

corentin-lechene/TFT-CONTROLLER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

TFT CONTROLLER

I know that my script is not very useful especially since TFT mobile exists. However, I had an urge to play it on my TV with my controller.
The scripts found on the internet did not work or worked badly. So I created this mini project to allow to me and for everyone who want it to have a script that works and configure as little as possible.

A debugging system is in place to allow you to play even if your screen is atypical. It's simple and will take you a few minutes. (See Troubleshooting → Mouse position wrong)

You can change the configuration as you wish only if it's possible. (See Planned Hotkeys)

How it will work

You will be able to play (finally) with the controller your favorite game deported from your PC / Phone. The directional arrows allow you to move on the ground. All TFT shortcuts have been added and can be modified. You can use the left joystick to move the mouse in a circle to get your champion or recover items.

Installation

  1. Download and install AutoHotkey from https://www.autohotkey.com/download/
  2. Download the Script from my GitHub

Setup

  1. Edit the file in the section Configuration (line 25) then add your resolution by changing these two values RESOLUTION_X := 1920 and RESOLUTION_Y := 1080
  2. Save and run

Planned Hotkeys

Key (PS4 - XBOX) Function (By default) Shortcuts TFT Editable
SQUARE - X Buy XP f Yes
CROSS - A Left Click Yes
CIRCLE - B Reroll d Yes
TRIANGLE - Y Sell e Yes
L1 - LB Next board q Yes
R1 - RB Previous board r Yes
L2 - LT Left Click Yes
R2 - RT Do nothing Yes
L1 & R1 - LB & RB Your board Space Yes
L2 & R2 - LT & RT Deploy / Return to bench w Yes
Directional arrow Left / Right / Down / Up No
Joystick left Move the mouse in a circle No
OPTIONS - LIST Escape / Open menu options Yes

Troubleshooting

Name of the Troubleshooting Issues
Controller not detected Normally a window should open and give you the number to replace this variable NUM_CONTROLLER := 1
Mouse position wrong Change this value DEBUG := 0 to 1, change your window mode on TFT to no edge and then restart the script. You'll see a little window that will follow your mouse. It displays the percentage of your location.
Get the values on each squares and add these values in their corresponding variable.(line 79-90)
Warn ! Take coordinates like this : Up to Down an Left to Right
Example (for shop) : AREA_SHOP_X := [x1, x2.., x5] and AREA_SHOP_Y := [y1]

Disclaimer

This script was created for me and for others who would like to have the possibility to play with a controller. You can use an XBOX or PS4 controller, I did not test the others.
Warning : I'm not responsible if Riot decides to ban you for using a 3rd party app. Remember, aI'm not too concerned about using it myself. Hopefully someone finds it at useful.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published