Game controller works in kodi UI but not in P-UAE
#7
(2021-02-24, 17:10)zmylna Wrote:
(2021-01-12, 07:18)garbear Wrote: Hi zmylna,

I think I see the problem. The input system we use to connect every physical controller to every emulated controller needs to know about the UAE core. In the log, I see:

Code:

Libretro input bindings:
------------------------------------------------------------
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_A, Description: A / 2nd fire / Blue
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_B, Description: B / Fire / Red
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_X, Description: X / Yellow
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_Y, Description: Y / Green
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_SELECT, Description: Select
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_START, Description: Start / Play
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_RIGHT, Description: Right
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_LEFT, Description: Left
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_UP, Description: Up
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_DOWN, Description: Down
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R, Description: R / Forward
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L, Description: L / Rewind
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R2, Description: R2
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L2, Description: L2
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R3, Description: R3
Port: 0, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L3, Description: L3
Port: 0, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Left Analog X
Port: 0, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Left Analog Y
Port: 0, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Right Analog X
Port: 0, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Right Analog Y
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_A, Description: A / 2nd fire / Blue
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_B, Description: B / Fire / Red
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_X, Description: X / Yellow
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_Y, Description: Y / Green
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_SELECT, Description: Select
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_START, Description: Start / Play
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_RIGHT, Description: Right
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_LEFT, Description: Left
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_UP, Description: Up
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_DOWN, Description: Down
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R, Description: R / Forward
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L, Description: L / Rewind
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R2, Description: R2
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L2, Description: L2
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R3, Description: R3
Port: 1, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L3, Description: L3
Port: 1, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Left Analog X
Port: 1, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Left Analog Y
Port: 1, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Right Analog X
Port: 1, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Right Analog Y
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_A, Description: A / 2nd fire / Blue
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_B, Description: B / Fire / Red
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_X, Description: X / Yellow
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_Y, Description: Y / Green
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_SELECT, Description: Select
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_START, Description: Start / Play
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_RIGHT, Description: Right
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_LEFT, Description: Left
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_UP, Description: Up
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_DOWN, Description: Down
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R, Description: R / Forward
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L, Description: L / Rewind
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R2, Description: R2
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L2, Description: L2
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R3, Description: R3
Port: 2, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L3, Description: L3
Port: 2, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Left Analog X
Port: 2, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Left Analog Y
Port: 2, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Right Analog X
Port: 2, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Right Analog Y
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_A, Description: A / 2nd fire / Blue
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_B, Description: B / Fire / Red
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_X, Description: X / Yellow
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_Y, Description: Y / Green
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_SELECT, Description: Select
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_START, Description: Start / Play
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_RIGHT, Description: Right
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_LEFT, Description: Left
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_UP, Description: Up
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_DOWN, Description: Down
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R, Description: R / Forward
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L, Description: L / Rewind
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R2, Description: R2
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L2, Description: L2
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_R3, Description: R3
Port: 3, Device: RETRO_DEVICE_JOYPAD, Feature: RETRO_DEVICE_ID_JOYPAD_L3, Description: L3
Port: 3, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Left Analog X
Port: 3, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_LEFT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Left Analog Y
Port: 3, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_X, Description: Right Analog X
Port: 3, Device: RETRO_DEVICE_ANALOG, Feature: RETRO_DEVICE_INDEX_ANALOG_RIGHT, Component: RETRO_DEVICE_ID_ANALOG_Y, Description: Right Analog Y
------------------------------------------------------------

Our input system uses two files to describe this configuration: topology.xml and buttonmap.xml. It looks like these files need to be updated to the core's new input configuration.]. It looks like these files need to be updated to the core's new input configuration.

I don't have time to update the XML now, but if you do, I can assist.[/url]

Thank you for your answer.
Understand but i do not have necessary knowledge to do this Sad
ok, i do some tests.
Looks like P-UAE addon do not see the controller.
If i press ctrl on the keyboard i see in the log something like this:
DEBUG: AddOnLog: Commodore - Amiga (P-UAE): Controller "game.controller.keyboard" key "leftctrl" (RETROK_LCTRL) modifier 0x00000002: down

If i press "a" on the xbox controller i see this:
DEBUG: BUTTON [ 0 ] on "Xbox Wireless Controller" pressed
DEBUG: FEATURE [ a ] on game.controller.default pressed (ignored)
DEBUG: FEATURE [ a ] on game.controller.default pressed (handled)
DEBUG: BUTTON [ 0 ] on "Xbox Wireless Controller" released
DEBUG: FEATURE [ a ] on game.controller.default released

There is no "AddOnLog: Commodore - Amiga (P-UAE)".
The add-on does not capture events from the controller.
---edit---
I think that this is the problem:
2021-02-25 22:26:30.253 T:140463586158336   ERROR: AddOnLog: Joystick Support: Device "Sony Interactive Entertainment Wireless Controller": can't find <controller> tag
or this:
2021-03-02 16:25:52.758 T:140180731189376   DEBUG: AddOnLog: Joystick Support: Loaded device "Keyboard" with 1 controller profiles and 139 total features
2021-03-02 16:25:52.761 T:140180731189376   DEBUG: AddOnLog: Joystick Support: Loaded device "Mouse" with 1 controller profiles and 1 total features
2021-03-02 16:25:52.762 T:140180731189376   DEBUG: AddOnLog: Joystick Support: Loaded device "Mouse" with 1 controller profiles and 10 total features
Two mouses ??

@garbear , can you confirm my assumptions ?
Reply


Messages In This Thread
RE: Game controller works in kodi UI but not in P-UAE - by zmylna - 2021-02-24, 19:13
Logout Mark Read Team Forum Stats Members Help
Game controller works in kodi UI but not in P-UAE0