Content Patcher

Content Patcher

463k Downloads

Migrate all mods to SMAPI 2.0+ input model

Pathoschild opened this issue ยท 1 comments

commented

SMAPI 2.0 adds a unified controller + keyboard + mouse input model. Migrate all mods to use it, which will simplify the code and make the config.json options more flexible.

commented

Done in develop for the upcoming releases.

For example, the previous Chests Anywhere 1.11 has this config.json:

{
  "Keyboard": {
    "Toggle": "B",
    "PrevChest": "Left",
    "NextChest": "Right",
    "PrevCategory": "Up",
    "NextCategory": "Down",
    "EditChest": "",
    "SortItems": ""
  },
  "Controller": {
    "Toggle": "",
    "PrevChest": "LeftShoulder",
    "NextChest": "RightShoulder",
    "PrevCategory": "LeftTrigger",
    "NextCategory": "RightTrigger",
    "EditChest": "",
    "SortItems": ""
  },
  "CheckForUpdates": true,
  "ShowHoverTooltips": true
}

Here's the same file in the upcoming Chests Anywhere 1.12:

{
  "ShowHoverTooltips": true,
  "Controls": {
    "Toggle": "B",
    "PrevChest": "Left, LeftShoulder",
    "NextChest": "Right, RightShoulder",
    "PrevCategory": "Up, LeftTrigger",
    "NextCategory": "Down, RightTrigger",
    "EditChest": "",
    "SortItems": ""
  }
}