Skip to content

Added L and R joystick recognition to Input.pak Tool - #890

Open
GERALTdTATUI wants to merge 1 commit into
LoveRetro:mainfrom
GERALTdTATUI:main
Open

GERALTdTATUI wants to merge 1 commit into
LoveRetro:mainfrom
GERALTdTATUI:main

Conversation

@GERALTdTATUI

@GERALTdTATUI GERALTdTATUI commented Nov 8, 2026 •

Copy link
Copy Markdown

Hi Guys. I'm not sure if this problem was posted before or if it's an intended feature, but the Input.pak from the extra packages can't monitor the inputs from my Trimui Smart PRO joysticks like shown in the image below:

Antes

Again, not sure if it's a feature, but looking up the code to compile a custom version of the Input.pak for myself, I've noticed that the code to monitor the joysticks was already baked into the project. It's just the L3/R3 checking function that's not able to recognize my device's joysticks.

//Original lines
int has_L3 = (BUTTON_L3!=BUTTON_NA || CODE_L3!=CODE_NA || JOY_L3!=JOY_NA);
int has_R3 = (BUTTON_R3!=BUTTON_NA || CODE_R3!=CODE_NA || JOY_R3!=JOY_NA);

//Ajusted lines
+ int has_L3 = (BUTTON_L3!=BUTTON_NA || CODE_L3!=CODE_NA || JOY_L3!=JOY_NA || AXIS_LX!=AXIS_NA || AXIS_LY!=AXIS_NA);
+ int has_R3 = (BUTTON_R3!=BUTTON_NA || CODE_R3!=CODE_NA || JOY_R3!=JOY_NA || AXIS_RX!=AXIS_NA || AXIS_RY!=AXIS_NA);

My device's virtual gamepad doesnt repport L3/R3 buttons, so the Input.pak's logic can't identify any joystick presense from my device. So I've adjusted the checking function to look up for L/R axis aswell as L3/R3 buttons and that solves the issue for me. Here's a picture of how my Input.pak looks now:

Depois

I've uploaded a commit with the made changes, although was some few variables inside two if statements *~*

Also, I've made a small version of the main project to compile just minput and nothig more, there's pre-compiled binaries and .pakz package for easy installation on its releases page

Hope I've could help someone with this post. ^_^

@GERALTdTATUI GERALTdTATUI reopened this Nov 8, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant