kodi-game / game.libretro.uae

UAE for Kodi
https://github.com/libretro/libretro-uae
2 stars 1 forks source link

Joystick (Speedlink Competition Pro) not working #4

Open Finn10111 opened 3 years ago

Finn10111 commented 3 years ago

Bug report

Describe the bug

I am not able to use a SNES like Gamepad or a Speedlink Competition Pro Joystick (USB) in Amiga 500 Games. I can use it to control the Kodi menus but I am unable to control any game. So I am not able to play any game using a gamepad or joystick.

To Reproduce

Steps to reproduce the behavior:

  1. Plugin joystick
  2. Do controller configuration
  3. start a game

Debuglog

kodi.log says it detects the joystick when plugged in:

2020-10-24 13:14:46.003 T:2826826608  NOTICE: Register - new joystick device registered on addon->peripheral.joystick/10: SPEEDLINK COMPETITION PRO Game Controller for Android

And when i start a only this appears in the log:

2020-10-24 13:18:48.334 T:3011242464   ERROR: AddOnLog: Commodore - Amiga (P-UAE): Setting puae_video_aspect: invalid value "PAL" (values are: Aspect Ratio; auto|auto|PAL|NTSC)
2020-10-24 13:18:48.567 T:3011242464   ERROR: AddOnLog: Commodore - Amiga (P-UAE): Setting puae_floppy_sound_type: invalid value "A500" (values are: Floppy Sound Emulation Type; internal|internal|A500|LOUD)
2020-10-24 13:18:50.214 T:3011242464   ERROR: RetroPlayer[RENDER]: Creating renderer for OpenGLES

Your Environment

Used Operating system:

Operating system version/name:

Kodi version: 18.8 LibreElec: 9.2.5

note: Once the issue is made we require you to update it with new information or Kodi versions should that be required. Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.

Finn10111 commented 2 years ago

Still I couldn't figure it out.. does anyone know what else I could try or check?

garbear commented 2 years ago

I'll look into it. Can you upload a debug log?

Finn10111 commented 2 years ago

Thanks for your reply, I attached a log file to this reply. I didn't think about it before but this log file already show some interesting lines like this, but I dont't know how to get two Competition Pro Joysticks running with that config file:

2021-11-10 13:33:14.982 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Libretro controller info:
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): ------------------------------------------------------------
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Device: RETRO_DEVICE_ANALOG, Subclass: 1, Description: "CD32 Pad"
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Device: RETRO_DEVICE_ANALOG, Subclass: 2, Description: "Analog Joystick"
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Device: RETRO_DEVICE_ANALOG, Subclass: 0, Description: "Joystick"
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Device: RETRO_DEVICE_KEYBOARD, Subclass: 0, Description: "Keyboard"
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Device: , Description: "None"
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): ------------------------------------------------------------
2021-11-10 13:33:14.983 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Loading libretro buttonmap /storage/.kodi/addons/game.libretro.uae/resources/buttonmap.xml
2021-11-10 13:33:14.984 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Detected buttonmap version 2
2021-11-10 13:33:14.986 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Loaded buttonmap at version 2
2021-11-10 13:33:14.986 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Loading controller topology "/storage/.kodi/addons/game.libretro.uae/resources/topology.xml"
2021-11-10 13:33:14.986 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Loaded controller topology with 3 ports
2021-11-10 13:33:14.987 T:3011687008   DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Libretro input bindings:

kodi.log

garbear commented 2 years ago

I've made some changes to get input working in UAE:

With this, I can get in game and control the emulator with controller, keyboard and mouse. I'll work on merging these, uploading to the mirrors, and creating a new test build with the port dialog fixes.

garbear commented 2 years ago

I created test builds with all current fixes included: github.com/garbear/xbmc/releases/

Let me know if there are still input problems.