rsubtil / controller_icons

Automatic keyboard/mouse/controller icons and remapper for Godot.
https://godotengine.org/asset-library/asset/1429
MIT License
241 stars 18 forks source link

If i connect a ps4 controller the addon thinks its a xbox controller #111

Open Raptorq1 opened 1 week ago

Raptorq1 commented 1 week ago

Screenshot_20240920-104858 If i connect a ps4 controller the addon thinks its a xbox controller oh and for some odd reason the add-on doesn't allow me to run my game within the editor using split screen mode

rsubtil commented 1 week ago

If i connect a ps4 controller the addon thinks its a xbox controller

Can you add some additional info from your current setup? It seems you're working from an Android tablet, is that correct? Is the controller connected through bluetooth, or with a cable?

for some odd reason the add-on doesn't allow me to run my game within the editor using split screen mode

Is this the error the screenshot refers to? If yes, it seems you're using a ControllerIconTexture within your code; can you show that part of the code to better understand your current context?

It's also possible that your code is running in/from an autoload, which is registered before the ControllerIcons autoload. If you're using this feature, try to move ControllerIcons to the top, before any of your project-specific code runs.

Raptorq1 commented 1 week ago

Can you add some additional info from your current setup? It seems you're working from an Android tablet, is that correct? Is the controller connected through bluetooth, or with a cable?

Yes that is correct and the controller is connected via Bluetooth

Is this the error the screenshot refers to? If yes, it seems you're using a ControllerIconTexture within your code; can you show that part of the code to better understand your current context?

yes

It's also possible that your code is running in/from an autoload, which is registered before the ControllerIcons autoload. If you're using this feature, try to move ControllerIcons to the top, before any of your project-specific code runs.

Okay but I can't do that because I'm using a sonic engine name sonic Worlds next and it need the engine files to be on top for the engine to work

Oh i got it to work but its still not showing the correct icon for ps4

rsubtil commented 5 days ago

Can you try opening this website (https://hardwaretester.com/gamepad), and check the name of the reported controller ?

Raptorq1 commented 5 days ago

This is what my ps4 shows up as

Screenshot_20240922-160303.png

and this is what my generic controller shows up as

Screenshot_20240922-160455.png

Raptorq1 commented 4 days ago

I updated the addon and no it still doesnt work