{
  "schemaVersion": 3.0,
  "appVersion": "6.4.0",
  "config": {
    "appName": "trackmania",
    "processNames": [
      "Trackmania.exe"
    ],
    "led": {
      "default": {
        "mode": "solid",
        "loop": true
      }
    },
    "minTimeUnit": 1
  },
  "devices": {
    "groups": [
      {
        "id": 2,
        "name": "mouse"
      }
    ],
    "hardware": [
      {
        "id": 1,
        "name": "gamepad",
        "default": {
          "sticks": [
            {
              "name": "left",
              "zones": [
                {
                  "name": "low",
                  "x": 4236
                }
              ],
              "curves": {
                "points": {
                  "horizontal": [
                    {
                      "id": 1,
                      "value": 0,
                      "travel": 4236
                    },
                    {
                      "id": 2,
                      "value": 9175,
                      "travel": 12085
                    },
                    {
                      "id": 3,
                      "value": 17694,
                      "travel": 19810
                    },
                    {
                      "id": 4,
                      "value": 25886,
                      "travel": 27036
                    }
                  ],
                  "vertical": [
                    {
                      "id": 1,
                      "value": 0,
                      "travel": 4236
                    },
                    {
                      "id": 2,
                      "value": 9175,
                      "travel": 12085
                    },
                    {
                      "id": 3,
                      "value": 17694,
                      "travel": 19810
                    },
                    {
                      "id": 4,
                      "value": 25886,
                      "travel": 27036
                    }
                  ]
                }
              }
            }
          ]
        },
        "convertToVirtual": true
      },
      {
        "groupId": 2,
        "id": 23,
        "name": "mouse"
      }
    ],
    "virtual": {
      "gamepads": [
        {
          "id": 1,
          "type": "360",
          "default": {
            "sticks": [
              {
                "name": "left",
                "initialDeflection": 100,
                "maxDeflection": 32767,
                "initialSpeed": 7
              },
              {
                "name": "right",
                "maxDeflection": 22472
              }
            ]
          },
          "shifts": [
            {
              "shiftId": 1,
              "sticks": [
                {
                  "name": "left",
                  "initialDeflection": 6024,
                  "maxDeflection": 32767,
                  "initialSpeed": 7
                },
                {
                  "name": "right",
                  "maxDeflection": 22472
                }
              ]
            }
          ]
        }
      ]
    }
  },
  "shifts": [
    {
      "id": 1,
      "type": "default"
    }
  ],
  "masks": [
    {
      "id": 1,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 3,
          "description": "XB, Stadia: X / DS4: Square / Nintendo: Y"
        }
      ]
    },
    {
      "id": 2,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 4,
          "description": "XB, Stadia: Y / DS4: Triangle / Nintendo: X"
        }
      ]
    },
    {
      "id": 3,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 5,
          "description": "XB: LeftShoulder / DS4, Stadia: L1 / Nintendo: L"
        }
      ]
    },
    {
      "id": 4,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 6,
          "description": "XB: RightShoulder / DS4, Stadia: R1 / Nintendo: R"
        }
      ]
    },
    {
      "id": 5,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 7,
          "description": "XB: View / XB360: Back / DS4: Share / Nintendo: Minus / DS3: Select / Stadia: Options / NvidiaShield: Back / SNES: Select"
        }
      ]
    },
    {
      "id": 6,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 34,
          "description": "DpadDown"
        }
      ]
    },
    {
      "id": 7,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 55,
          "description": "BtnRightTrigger"
        }
      ]
    },
    {
      "id": 8,
      "set": [
        {
          "deviceId": 23,
          "buttonId": 64,
          "description": "MouseStickUp"
        }
      ]
    },
    {
      "id": 9,
      "set": [
        {
          "deviceId": 23,
          "buttonId": 65,
          "description": "MouseStickDown"
        }
      ]
    },
    {
      "id": 10,
      "set": [
        {
          "deviceId": 23,
          "buttonId": 66,
          "description": "MouseStickLeft"
        }
      ]
    },
    {
      "id": 11,
      "set": [
        {
          "deviceId": 23,
          "buttonId": 67,
          "description": "MouseStickRight"
        }
      ]
    }
  ],
  "mappings": [
    {
      "condition": {
        "mask": {
          "id": 1,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 57,
            "description": "DIK_SPACE"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 2,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 14,
            "description": "DIK_BACK"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 3,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 18,
            "description": "DIK_E"
          }
        }
      ]
    },
    {
      "description": "Reset Cam 2",
      "condition": {
        "mask": {
          "id": 3,
          "activator": {
            "type": "release",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "up"
          }
        },
        {
          "keyboard": {
            "buttonId": 2,
            "description": "DIK_1",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 2,
            "description": "DIK_1",
            "action": "up"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 4,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 18,
            "description": "DIK_E"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 4,
          "activator": {
            "type": "release",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "up"
          }
        },
        {
          "keyboard": {
            "buttonId": 3,
            "description": "DIK_2",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 3,
            "description": "DIK_2",
            "action": "up"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 5,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "jumpToLayer": {
        "layer": 1
      }
    },
    {
      "condition": {
        "mask": {
          "id": 6,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 7,
          "activator": {
            "type": "single",
            "mode": "toggle"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 82,
            "description": "DIK_NUMPAD0"
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 1,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 57,
            "description": "DIK_SPACE"
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 3,
          "activator": {
            "type": "single",
            "mode": "onetime",
            "params": {
              "expert": true,
              "delay": 0
            }
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 30,
            "description": "DIK_A",
            "action": "down"
          }
        },
        {
          "pause": {
            "value": 94
          }
        },
        {
          "keyboard": {
            "buttonId": 32,
            "description": "DIK_D",
            "action": "down"
          }
        },
        {
          "pause": {
            "value": 15
          }
        },
        {
          "keyboard": {
            "buttonId": 30,
            "description": "DIK_A",
            "action": "up"
          }
        },
        {
          "pause": {
            "value": 1475
          }
        },
        {
          "keyboard": {
            "buttonId": 32,
            "description": "DIK_D",
            "action": "up"
          }
        }
      ]
    },
    {
      "description": "Reset Cam 2",
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 3,
          "activator": {
            "type": "release",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      }
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 4,
          "activator": {
            "type": "single",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 4,
            "description": "DIK_3",
            "action": "up"
          }
        },
        {
          "keyboard": {
            "buttonId": 3,
            "description": "DIK_2",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 3,
            "description": "DIK_2",
            "action": "up"
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 5,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "jumpToLayer": {
        "layer": 0
      }
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 8,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 40,
            "description": "LeftStickUp",
            "absolute": true,
            "value": 32767
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 9,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 41,
            "description": "LeftStickDown",
            "absolute": true,
            "value": 32767
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 10,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 42,
            "description": "LeftStickLeft",
            "absolute": true,
            "value": 32767
          }
        }
      ]
    },
    {
      "condition": {
        "shiftId": 1,
        "mask": {
          "id": 11,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 43,
            "description": "LeftStickRight",
            "absolute": true,
            "value": 32767
          }
        }
      ]
    }
  ]
}
