Supermodel icon indicating copy to clipboard operation
Supermodel copied to clipboard

[Linux\SDL\Input] Supermodel unable to read inputs from game controllers

Open cinnamonmatexfce opened this issue 11 months ago • 7 comments

Probably related to #223


Game controller is correctly recognized (NO force feedback support) by pressing "i" during -config-inputs, but Supermodel intercepts keyboard inputs only.

Last working commit (without force feedback, sadly): 161f1e39b43828fc81462d3903f5b233432515b3

In other program (WINE, Steam's Proton, native emulalors, KDE System Settings) it works just fine.

Useful infos:

  • executing with SDL_JOYSTICK_HIDAPI=0

  • packages

local/lib32-sdl12-compat 1.2.68-2
local/sdl12-compat 1.2.68-2
local/sdl2-compat 2.30.52-1
local/sdl2-gamepad-mapper 0.0.4-3
local/sdl2_net 1:2.2.0-2
local/sdl2_ttf 2.24.0-1
local/sdl3 3.2.2-1
local/sdl_mixer 1.2.12-12
  • gamepad (DualShock 4, USB)
playstation 0003:054C:09CC.0004: hidraw2: USB HID v1.11 Gamepad [Sony Interactive Entertainment Wireless Controller] on usb-0000:00:14.0-3/inp>
input: Sony Interactive Entertainment Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.3/0003:054C:09CC.0004/input/input>
input: Sony Interactive Entertainment Wireless Controller Motion Sensors as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.3/0003:054C:09CC.0>
input: Sony Interactive Entertainment Wireless Controller Touchpad as /devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.3/0003:054C:09CC.0004/in>
  • kernel
local/linux 6.13.1.arch1-1
  • compiler
local/gcc 14.2.1+r730+gc061ad5a36ba-1
local/gcc-libs 14.2.1+r730+gc061ad5a36ba-1

cinnamonmatexfce avatar Feb 04 '25 13:02 cinnamonmatexfce

I am seeing exactly the same issue with an Xbox360 controller: it's listed correctly by pressing "i" during -config-inputs, but Supermodel intercepts keyboard inputs only: I can't configure it, no matter what.

vanfanel avatar Sep 25 '25 23:09 vanfanel

Have you ensured that the Supermodel window is selected and focused and not the terminal where it prints?Sent from my iPhoneOn Sep 25, 2025, at 7:34 PM, Manuel Alfayate Corchete @.***> wrote:vanfanel left a comment (trzy/Supermodel#224) I am seeing exactly the same issue with an Xbox360 controller: it's listed correctly by pressing "i" during -config-inputs, but Supermodel intercepts keyboard inputs only: I can't configure it, no matter what.

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

trzy avatar Sep 26 '25 02:09 trzy

@trzy Yes, I am sure the Supermodel window is active, not the TTY console. In fact, gamepad buttons are recognized in-game. It's in the configuration (via -config-inputs or on the new imgui UI) where it fails to recognize button/axis presses.

vanfanel avatar Sep 26 '25 09:09 vanfanel

I am seeing exactly the same issue with an Xbox360 controller: it's listed correctly by pressing "i" during -config-inputs, but Supermodel intercepts keyboard inputs only: I can't configure it, no matter what.

Hey @vanfanel ! I won't have access to Supermodel anytime soon these days, so I'm asking you to try something if you can and have spare time: what if you first calibrate analog axes before starting configuring the joystick inputs?

cinnamonmatexfce avatar Sep 26 '25 11:09 cinnamonmatexfce

@cinnamonmatexfce No problem! I can do any experiments and re-builds as you need/want.

Calibrating analog axes can be done correctly with -config-inputs then b and the returned values are correct.

However, after that, buttons and axis are still not recognized when assigning them.

Needless to say, this pad works correctly on any other SDL2 game/program including the gamepad tool.

vanfanel avatar Sep 26 '25 13:09 vanfanel

@cinnamonmatexfce No problem! I can do any experiments and re-builds as you need/want.

Calibrating analog axes can be done correctly with -config-inputs then b and the returned values are correct.

However, after that, buttons and axis are still not recognized when assigning them.

Needless to say, this pad works correctly on any other SDL2 game/program including the gamepad tool.

If you haven't done it already... What about saving calibration at first as a separate step? Let it save it onto the .ini file and exit Supermodel. Then, reopen Supermodel and re-issue inputs configuration and check if joystick inputs are now being read correctly.

Anyway, you're in the same boat as mine: SDL2 works perfectly fine for all other applications onto my ArchLinux box.

cinnamonmatexfce avatar Sep 26 '25 17:09 cinnamonmatexfce

@cinnamonmatexfce I also tried that, but it makes no difference either.

vanfanel avatar Sep 26 '25 21:09 vanfanel