Don't Starve

Don't Starve

Generic to Xbox360
Ozime 9 Oct, 2019 @ 3:49am
Controler keys mapping
Why not ?

Hello peter_a_klei.

To help the players to use your mod and fix the symbols for their controler, create a topic with the main settings can be a good idea, can't it?

I invite the other players to comment their version when my setting isn't good for them. :-)

Code bloc

From Ubuntu 18.04, the file name is
$HOME/.local/share/Steam/steamapps/common/dont_starve/mods/workshop-391918434/modmain.lua
. I use a XBox 360 controler.

After the previous comments, I get this setting :

local remap_table = { ["(DPad 0 Up)"] = "\142",--"DPad Up" ["(DPad 0 Down)"] = "\139",--"DPad Down" ["(DPad 0 Left)"] = "\140",--"DPad Left", ["(DPad 0 Right)"] = "\141",--"DPad Right" --derived from "(DPad %d [direction])", ["(Button 0)"] = "\127",--"Button X", ["(Button 1)"] = "\128",--"Button A", ["(Button 2)"] = "\129",--"Button B", ["(Button 3)"] = "\130",--"Button Y", ["(Button 4)"] = "\134",--"Left Bumper ", ["(Button 5)"] = "\137",--"Right Bumper", ["(Button 6)"] = "\132",--"Back", ["(Button 7)"] = "\131",--"Start", ["(Button 8)"] = nil,--"Xbox menu", ["(Button 9)"] = "\133",--"Left Stick", ["(Button 10)"] = "\136",--"Right Stick", --derived from "(Button %d)" ["(-Y Axis)"] = "\143",--"Left Thumb Up", ["(+Y Axis)"] = "\144",--"Left Thumb Down", ["(-X Axis)"] = "\145",--"Left Thumb Left", ["(+X Axis)"] = "\146",--"Left Thumb Right", ["(-Z Axis)"] = nil, ["(+Z Axis)"] = "\135",--"Left Trigger", ["(-Z Rotation)"] = nil, ["(+Z Rotation)"] = "\138",--"Right Trigger", --unset generic inputs ["(-X Rotation)"] = "\149",--"Right Thumb Left", ["(+X Rotation)"] = "\150",--"Right Thumb Right", ["(-Y Rotation)"] = "\147",--"Right Thumb Up", ["(+Y Rotation)"] = "\148",--"Right Thumb Down", ["(Slider 0)"] = nil, ["(Slider 0)"] = nil, ["(Slider 1)"] = nil, ["(Slider 1)"] = nil, }

Thanks

Thanks for you, peter_a_klei, for your mod.
Thanks for CSmith501 and Dredonkey for their useful comments. ;-)
Last edited by Ozime; 9 Oct, 2019 @ 3:50am