It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Hello,

The support for game controller is pretty strange with this game. I bought the game on GOG, but, if the steam client is not running, the game does not see the controller. However, the game does not support the controller, nor as a XBox one neither as a PS4 controller.

If I unplug the device, the sees it is unplugged, but because it has detected the controller and I have set the option to activate the controller, the mouse is not working any more until I plug the controller back. I also encounter situation were no matter what, the mouse was not available due to a situation with the game controller. This has forced me to kill the EoCApp process to stop the game.

Below are the result form the lsusb command for my game controller.

Bus 003 Device 007: ID 054c:0268 Sony Corp. Batoh Device / PlayStation 3 Controller
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x054c Sony Corp.
idProduct 0x0268 Batoh Device / PlayStation 3 Controller
bcdDevice 1.00
iManufacturer 1 SZMY-POWER CO.,LTD.
iProduct 2 PLAYSTATION(R)3 Controller
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0029
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.11
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 148
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 10
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 1
Device Status: 0x0000
(Bus Powered)


Any hope of a solution to get it working?

Whenever possibile I do prefer to use a game controller, because using a keyboard and a mouse can cause me issues with my arms and my back.
avatar
montaropdf:
What game? Since DivOS EE is the only one with native Linux support, I assume that's the one you're talking about. The game recognizes my DS4 without issue, as far as I an tell from previous testing (I normally play with mouse/kb, so I haven't tested extensively). I just fired it up and it still seems to wlrk. However, it may need remapping (uses triangle instead of circle for cancel, but labels as circle, so maybe the buttons need swapping). Have you tried setting SDL_GAMECONTROLLERCONFIG?

Note that I do not use Steam or have a Steam account, so I have no idea how to look into that issue.
avatar
montaropdf:
avatar
darktjm: What game? Since DivOS EE is the only one with native Linux support, I assume that's the one you're talking about. The game recognizes my DS4 without issue, as far as I an tell from previous testing (I normally play with mouse/kb, so I haven't tested extensively). I just fired it up and it still seems to wlrk. However, it may need remapping (uses triangle instead of circle for cancel, but labels as circle, so maybe the buttons need swapping). Have you tried setting SDL_GAMECONTROLLERCONFIG?

Note that I do not use Steam or have a Steam account, so I have no idea how to look into that issue.
Indeed, I talk about DivOS EE.

Is SDL_GAMECONTROLLERCONFIG an environment variable or some variable in a configuration file?

Thanks for the reply.
Post edited November 14, 2021 by montaropdf
avatar
montaropdf: Is SDL_GAMECONTROLLERCONFIG an environment variable or some variable in a configuration file?
It's an environment variable. You will need to set it to the correct value for your controller. I posted some hints on how to set it elsewhere and in several posts thereafter in the same thread, or you can just do a google search. Since you say you have Steam, there is a Steam controller mapping utility which generates the necessary value.

It can also be a configuration file, but knowing where to find that file can be an issue. It's easiest to set the environment variable in your game launcher script or, better yet, in your .profile or whatever your shell uses as a startup script, so it's available for all games to use (that's what I do).

edit: also, I forgot to modify my post above: there is no remapping necessary. I just thought so because my circle button wasn't behaving right, but it turned out that was because there was cruft on the button contact. A good cleaning later, and everything works as expected.
Post edited November 14, 2021 by darktjm
I finally find a solution by searching on this forum.

The following did the trick for me
Removing the SDL library bundled with the game and issueing the following command.

ln -s /usr/lib64/libSDL2-2.0.so.0 ./game/libSDL2-2.0.so.1
Hi!

Unfortunately, PS3/4 controllers are not 100% supported by linux. Most games will not recognize them as a mouse, and therefore the controller will not be able to operate the game.

We do offer a workaround for this, however. You can follow our tutorial [link] to enable your PC to recognize your PS3/4 controller as a mouse and play games from there. Please note that it is possible that this solution might not work for all games because of how each game was designed, but it should work for most!