{
  "schemaVersion": 3.0,
  "appVersion": "6.4.0",
  "config": {
    "appName": "Dead Space 2",
    "comment": "Dead Space 2",
    "processNames": [
      "deadspace2.exe",
      "deadspace3.exe",
      "Dead Space.exe"
    ],
    "led": {
      "default": {
        "mode": "shimmer",
        "colors": [
          [
            159,
            0,
            255
          ]
        ],
        "loop": true
      }
    },
    "minTimeUnit": 1
  },
  "devices": {
    "hardware": [
      {
        "id": 1,
        "name": "gamepad",
        "mouse": {
          "config": {
            "sensitivity": 72,
            "deflection": 7,
            "acceleration": 16,
            "wheelDeflection": 1
          }
        },
        "default": {
          "sticks": [
            {
              "name": "gyro",
              "curves": {
                "points": {
                  "horizontal": [
                    {
                      "id": 1,
                      "value": 17000,
                      "travel": 8000
                    },
                    {
                      "id": 2,
                      "value": 17000,
                      "travel": 32768
                    }
                  ],
                  "vertical": [
                    {
                      "id": 1,
                      "value": 17000,
                      "travel": 8000
                    },
                    {
                      "id": 2,
                      "value": 17000,
                      "travel": 32768
                    }
                  ]
                }
              },
              "mouse": {
                "sensitivity": 75,
                "sensitivityY": 75,
                "smoothing": 6
              }
            }
          ],
          "triggers": [
            {
              "name": "left",
              "zones": [
                {
                  "name": "med",
                  "x": 31584
                },
                {
                  "name": "high",
                  "x": 31584
                }
              ],
              "affectHardware": true,
              "adaptiveDescription": "Full Press",
              "adaptiveMode": 2,
              "adaptiveStartResistance": 144,
              "adaptiveEndResistance": 160,
              "adaptiveForce": 255
            },
            {
              "name": "right",
              "zones": [
                {
                  "name": "low",
                  "x": 28800
                },
                {
                  "name": "med",
                  "x": 28800
                },
                {
                  "name": "high",
                  "x": 28800
                }
              ],
              "adaptiveDescription": "Hard Press",
              "adaptiveMode": 2,
              "adaptiveStartResistance": 32,
              "adaptiveEndResistance": 160,
              "adaptiveForce": 255
            }
          ],
          "touchpads": [
            {
              "id": 1,
              "mode": "digital",
              "zoneClickRequired": false
            }
          ]
        },
        "convertToVirtual": true
      }
    ],
    "virtual": {
      "gamepads": [
        {
          "id": 1,
          "type": "ds4"
        }
      ]
    }
  },
  "masks": [
    {
      "id": 1,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 13,
          "description": "XB: Share / DualSense: Mic / Stadia: Assistant / NvidiaShield: Home / Flydigi: Back"
        }
      ]
    },
    {
      "id": 2,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 51,
          "description": "BtnLeftTrigger"
        }
      ]
    },
    {
      "id": 3,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 54,
          "description": "LeftTriggerHighZone"
        }
      ]
    },
    {
      "id": 4,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 58,
          "description": "RightTriggerHighZone"
        }
      ]
    },
    {
      "id": 5,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 68,
          "description": "Gyroscope up"
        }
      ]
    },
    {
      "id": 6,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 69,
          "description": "Gyroscope down"
        }
      ]
    },
    {
      "id": 7,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 70,
          "description": "Gyroscope left"
        }
      ]
    },
    {
      "id": 8,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 71,
          "description": "Gyroscope right"
        }
      ]
    },
    {
      "id": 9,
      "set": [
        {
          "deviceId": 1,
          "buttonId": 164,
          "description": "Right TrackPad tap"
        }
      ]
    }
  ],
  "commands": [
    {
      "id": 1,
      "type": 15,
      "name": "COMMAND_TURN_GYRO_ON"
    },
    {
      "id": 2,
      "type": 16,
      "name": "COMMAND_TURN_GYRO_OFF"
    }
  ],
  "mappings": [
    {
      "description": "Screenshot",
      "condition": {
        "mask": {
          "id": 1,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 183,
            "description": "DIK_SYSRQ"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 1,
          "activator": {
            "type": "long",
            "mode": "onetime",
            "params": {
              "expert": true,
              "delay": 0
            }
          }
        }
      },
      "macros": [
        {
          "keyboard": {
            "buttonId": 56,
            "description": "DIK_LMENU",
            "action": "down"
          }
        },
        {
          "pause": {
            "value": 16
          }
        },
        {
          "keyboard": {
            "buttonId": 219,
            "description": "DIK_LWIN",
            "action": "down"
          }
        },
        {
          "keyboard": {
            "buttonId": 19,
            "description": "DIK_R",
            "action": "down"
          }
        },
        {
          "pause": {
            "value": 172
          }
        },
        {
          "keyboard": {
            "buttonId": 19,
            "description": "DIK_R",
            "action": "up"
          }
        },
        {
          "pause": {
            "value": 15
          }
        },
        {
          "keyboard": {
            "buttonId": 219,
            "description": "DIK_LWIN",
            "action": "up"
          }
        },
        {
          "keyboard": {
            "buttonId": 56,
            "description": "DIK_LMENU",
            "action": "up"
          }
        }
      ]
    },
    {
      "description": "Soft AIM/Full 2ndary ",
      "condition": {
        "mask": {
          "id": 2,
          "activator": {
            "type": "single",
            "mode": "onetime"
          }
        }
      }
    },
    {
      "condition": {
        "mask": {
          "id": 2,
          "activator": {
            "type": "start",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      },
      "macros": [
        {
          "command": {
            "id": 1
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 2,
          "activator": {
            "type": "release",
            "mode": "onetime",
            "params": {
              "expert": true
            }
          }
        }
      },
      "macros": [
        {
          "command": {
            "id": 2
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 3,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 6,
            "description": "XB: RightShoulder / DS4, Stadia: R1 / Nintendo: R"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 4,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 55,
            "description": "BtnRightTrigger"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 5,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "mouse": {
            "direction": "down"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 6,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "mouse": {
            "direction": "up"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 7,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "mouse": {
            "direction": "left"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 8,
          "activator": {
            "type": "single",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "mouse": {
            "direction": "right"
          }
        }
      ]
    },
    {
      "condition": {
        "mask": {
          "id": 9,
          "activator": {
            "type": "double",
            "mode": "hold_until_release"
          }
        }
      },
      "macros": [
        {
          "gamepad": {
            "id": 1,
            "buttonId": 1,
            "description": "XB, Stadia: A / DS4: Cross / Nintendo: B"
          }
        }
      ]
    }
  ]
}
