Controller not working in PSX emulators

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
xplodwild Offline
Junior Member
Posts: 4
Joined: Mar 2017
Reputation: 0
Post: #1
Hello there

I'm using Milhouse's build 0316 of LIbreElec (latest from yesterday) on Generic (Intel NUC / x86_64), which has Kodi 18 and RetroPlayer compatibility.

While GameBoy Advance emulator works fine, I can't seem to get my gamepad working with PCSX ReARMed. Gamepad is setup properly in the settings (the same way I set it up for GBA), but nothing happens when I press the buttons when the game is running.

Here's an extract of the log when pressing buttons:

Code:
21:32:51.485 T:140710634245376   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
21:32:51.585 T:140710040827648   DEBUG: Button [ 3 ] on Mega World USB 2-Axis 8-Button Gamepad released
21:32:51.585 T:140710040827648   DEBUG: Feature [ y ] on game.controller.default released
21:32:53.778 T:140710040827648   DEBUG: Button [ 0 ] on Mega World USB 2-Axis 8-Button Gamepad pressed
21:32:53.778 T:140710040827648   DEBUG: Feature [ a ] on game.controller.default pressed
21:32:53.778 T:140710040827648   DEBUG: Joystick button event handled
21:32:53.881 T:140710040827648   DEBUG: Button [ 0 ] on Mega World USB 2-Axis 8-Button Gamepad released
21:32:53.881 T:140710040827648   DEBUG: Feature [ a ] on game.controller.default released
21:32:58.073 T:140710040827648   DEBUG: Button [ 1 ] on Mega World USB 2-Axis 8-Button Gamepad pressed
21:32:58.073 T:140710040827648   DEBUG: Feature [ x ] on game.controller.default pressed
21:32:58.073 T:140710040827648   DEBUG: Joystick button event handled
21:32:58.785 T:140710040827648   DEBUG: Button [ 1 ] on Mega World USB 2-Axis 8-Button Gamepad released
21:32:58.785 T:140710040827648   DEBUG: Feature [ x ] on game.controller.default released

Again, the gamepad works in both Kodi UI and GBA emulators. I haven't tried with other emulators yet. The gamepad doesn't seem to work both in PCSX and Mednafen PSX.

Is it a bug, or am I missing a config somewhere?
Thanks!
(This post was last modified: 2017-03-23 10:11 by xplodwild.)
find quote
oBey Offline
Junior Member
Posts: 18
Joined: Oct 2009
Reputation: 0
Post: #2
Having this issue aswell. Xbox 360 wireless controller connected to Intel Nuc Gen7 with Millhouse Libreelec x64_64, works in Kodi and in Snes9x but not in PSX Rearmed or Mednafen PSX.

At work atm so cant post any logs.
(This post was last modified: 2017-03-22 19:17 by oBey.)
find quote
xplodwild Offline
Junior Member
Posts: 4
Joined: Mar 2017
Reputation: 0
Post: #3
(2017-03-22 14:49)oBey Wrote:  Having this issue aswell. Xbox 360 wireless controller connected to Intel Nuc Gen7 with Millhouse Libreelec x64_64, works in Kodi and in Snes9x but not in PSX Rearmed or Mednafen PSX.

At work atm so cant post any logs.

Glad to see I'm not the only one with this issue. If someone not using LibreELEC could confirm if the bug is linked to Kodi or that specific release of LibreELEC, that would help debugging the issue.
I can also confirm it works in other emulators (NES, SNES, GBA), just not PSX ones.
find quote
oBey Offline
Junior Member
Posts: 18
Joined: Oct 2009
Reputation: 0
Post: #4
Debuglogs for a sessions starting a game and pressing all buttons once. Maby someone can get something out of it.

https://pastebin.com/2DcZk7nD
find quote
MrTarantula Offline
Member
Posts: 62
Joined: Jan 2016
Reputation: 3
Post: #5
I actually just had this issue last night after resuming my test builds. Try starting the game from the .cue file. If my memory is correct, you can easily create or generate one if it doesn't exist. That got my controller (DualShock3) working.
find quote
oBey Offline
Junior Member
Posts: 18
Joined: Oct 2009
Reputation: 0
Post: #6
Will do a test.

Edit: Same when running from the .cue im afraid.
(This post was last modified: 2017-04-06 20:30 by oBey.)
find quote
garbear Offline
Team-Kodi Developer
Posts: 1,749
Joined: Dec 2010
Reputation: 112
Location: city of angels
Post: #7
Thanks for the log. It shows what's wrong:

Code:
ERROR: AddOnLog: PlayStation (PCSX ReARMed): <feature> tag has no "mapto" attribute

This was fixed in PR:4. Make sure the fix is getting into your build.

BTC: 1JtXwJdGdE9YnYgThWBT2StFCU5sEYkbVD (personal), https://kodi.tv/contribute/donate-bitcoin (foundation). Donations in the form of controllers, especially ones that don't work in Kodi, are also appreciated.
find quote
oBey Offline
Junior Member
Posts: 18
Joined: Oct 2009
Reputation: 0
Post: #8
Already know and fixed, great. Guessing it will be added some day by milhouse, im not in a hurry.

Thanks for reply and the great work!
find quote
xplodwild Offline
Junior Member
Posts: 4
Joined: Mar 2017
Reputation: 0
Post: #9
@garbear Hey, author of the patch here. I changed that locally in my addon directory, but unfortunately it didn't make much changes. The input still wasn't getting routed to the emulator.
Is the file perhaps compiled into something else? In which case, it might be indeed the reason.
find quote
garbear Offline
Team-Kodi Developer
Posts: 1,749
Joined: Dec 2010
Reputation: 112
Location: city of angels
Post: #10
No, the file is loaded directly by game.libretro. Can you post a debug log with the fix included? This may not show what's wrong, so I'll fire up a PS game and trace down the problem later today.

BTC: 1JtXwJdGdE9YnYgThWBT2StFCU5sEYkbVD (personal), https://kodi.tv/contribute/donate-bitcoin (foundation). Donations in the form of controllers, especially ones that don't work in Kodi, are also appreciated.
find quote
garbear Offline
Team-Kodi Developer
Posts: 1,749
Joined: Dec 2010
Reputation: 112
Location: city of angels
Post: #11
I just tried game.libretro.pcsx-rearmed and input is still broken. However, every button I press is successfully sent to the libretro core as a game.controller.ps button. This seems to be an internal error in the core. Can you try various roms to see if any work, as well as the beetle-psx emulator?

BTC: 1JtXwJdGdE9YnYgThWBT2StFCU5sEYkbVD (personal), https://kodi.tv/contribute/donate-bitcoin (foundation). Donations in the form of controllers, especially ones that don't work in Kodi, are also appreciated.
find quote
oBey Offline
Junior Member
Posts: 18
Joined: Oct 2009
Reputation: 0
Post: #12
I changed the file locally and fired up some games. I managed to get controller input in Tony Hawk Pro skater 2 EU. But not in any other games i tried. FF7, Crash Bandicot, Metalslug.

Havent tried the other core.
find quote
bugherbert Offline
Junior Member
Posts: 7
Joined: Oct 2012
Reputation: 0
Post: #13
i have this issue as well using Milhouse #0412 and older.
the issue appears also when mapping buttons with the PS3 controller in the controller settings. i can select a button, it waits for the button-press to assing but did not get anything. this applies to all conrtoller-profiles (Kodi, Dreamcast,GameBoy,...)
find quote
garbear Offline
Team-Kodi Developer
Posts: 1,749
Joined: Dec 2010
Reputation: 112
Location: city of angels
Post: #14
The issue in the OP is about an xbox 360 controller not working in a PS1 game. You have a PS3 controller not working at all. These are different issues. Can you post a debug log please?

BTC: 1JtXwJdGdE9YnYgThWBT2StFCU5sEYkbVD (personal), https://kodi.tv/contribute/donate-bitcoin (foundation). Donations in the form of controllers, especially ones that don't work in Kodi, are also appreciated.
find quote
bugherbert Offline
Junior Member
Posts: 7
Joined: Oct 2012
Reputation: 0
Post: #15
here is the logfile

logfile
find quote
Post Reply