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

×
This game seems to be lacking support for most (newer) gamepads on Linux, such as the Xbox One S controller. This is due to it shipping an outdated list of gamepad mappings. It also seems to ignore the SDL_GAMECONTROLLERCONFIG environment variable that usually can be used to change these mappings (and that is also the reason why if you are using steam for some reason, setting the gamepad mapping there won't work either).

Luckily this can be worked around:

1. Start the game from a terminal with the gamepad attached. Look for a line like the following (the actual guid depends on your gamepad):
looks like a joystick with guid : 030000005e040000ea02000001030000

2. Find a mapping for your gamepad in the latest SDL mapping data. For this go to https://raw.githubusercontent.com/gabomdq/SDL_GameControllerDB/master/gamecontrollerdb.txt and search for the guid in the Linux section of that file. Once you found a matching entry, copy the mapping, but not the guid or anything else. It should look something like this:
a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttri gger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y: b3

3. Find a compatible mapping that is included but does not have the guid you need for your gamepad:
strings "The_Swords_of_Ditto" | grep "a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttr igger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y :b3"
Copy the guid of the compatible mapping. In my case it was:
030000005e0400008e02000014010000

4. Make sure the found guid and the guid of your controller have the same length, otherwise things might break.

5. Create a backup and modify the binary to use the compatible mapping for your guid:
cp The_Swords_of_Ditto The_Swords_of_Ditto_bak && sed -i -e "s/030000005e0400008e02000014010000/030000005e040000ea02000001030000/" The_Swords_of_Ditto

If you can't find a compatible mapping, or the length of the guids differs for some reason, you can also try opening the binary in a hex editor (such as ghex) and modify the mapping data directly. But again things might break if the total length of the entry is changed, so maybe you need to fill it up with data that gets ignored, like commas at the end.