Enable Pivot without a parent input

By default, Pivot inputs can only be used while holding down another button or input, as in the example below where a pivot has been added under Top Thumb.

See How to use the Z's Tilt and Pivot inputs for analog joystick control for how to set one up.

Top Thumb set to Re-Zero Pivot, with an Analog Pivot nested under it set to Joystick Axis Z Rotation

This is intentional, as, Pivot inputs in isolation are generally impractical due to the nature of how you move the mouse.

Because of this, the X1 Control Panel natively cannot add a pivot without a parent input itself.

However, we can edit the profiles JSON to hold one, and X1 shows and edits it like any other mapping once it's there. To add one, export the profile you'd like to add Pivot inputs to, paste the text below into the file, and import it again.

Pivoting is hard to avoid while you move the mouse, so a pivot without a parent input will trigger often. Keep a copy of the exported file, so you can import it again to undo this.

1. Export the profile

Click Manage profiles at the right end of the profile bar, then Export. Tick only the profile you want to add the pivot to, click Export Selected... and save the file.

Manage profiles, Export tab, with a profile and Export Selected marked

2. Add the pivot to the file

Open the file in a text editor, such as Notepad or TextEdit.

  1. Search for "Applications": [. Skip the first match: it belongs to Global Defaults. Go to the second match.
  2. Two lines above it is a line with only ] on it. This ends the profile's list of mappings.
  3. Paste the text below on a new line just above that ], and save the file.
    • If the profile has no mappings of its own, the line before the ] is "$values": [. Delete the comma at the very start of the pasted text.

The end of the profile's list then looks like this, with the pasted text in place of ...:

}
,
{ ... }
]
},
"Applications": [

The text to paste adds Pivot Left and Pivot Right inputs, and an Analog Pivot from -8° to 8°, all set to do nothing:

,
{
    "ActionMappingIndexToBlockOnActivation": 65535,
    "ActionMappingIndexToBlockOnDeactivation": 65535,
    "ActivationOutputActionItems": [],
    "DeactivationOutputActionItems": [],
    "Id": "1",
    "InputActionType": {
        "$type": "ZMouseConfig.InputActionTypes.ImuAngleRegionToggleInputActionType, ZMouseConfig",
        "ActiveState": "activeWhenOn",
        "Axis": "yaw",
        "DataType": "trigger",
        "Direction": "both",
        "Id": "imuAngleRegionToggle",
        "IsValid": true,
        "Region": {
            "EntryEndDegreeTenths": 1788,
            "EntryStartDegreeTenths": 0,
            "ExitEndDegreeTenths": 1793,
            "ExitStartDegreeTenths": 0,
            "IsValid": true
        }
    },
    "ItemType": "actionMapping",
    "OutputActionSequenceDelay": 0,
    "Predecessor": null,
    "PredecessorId": 65535,
    "ShouldBlockOnActivation": false,
    "ShouldBlockOnDeactivation": false
},
{
    "ActionMappingIndexToBlockOnActivation": 65535,
    "ActionMappingIndexToBlockOnDeactivation": 65535,
    "ActivationOutputActionItems": [],
    "DeactivationOutputActionItems": [],
    "Id": "1",
    "InputActionType": {
        "$type": "ZMouseConfig.InputActionTypes.ImuAngleRegionToggleInputActionType, ZMouseConfig",
        "ActiveState": "activeWhenOn",
        "Axis": "yaw",
        "DataType": "trigger",
        "Direction": "both",
        "Id": "imuAngleRegionToggle",
        "IsValid": true,
        "Region": {
            "EntryEndDegreeTenths": 3600,
            "EntryStartDegreeTenths": 1812,
            "ExitEndDegreeTenths": 3600,
            "ExitStartDegreeTenths": 1807,
            "IsValid": true
        }
    },
    "ItemType": "actionMapping",
    "OutputActionSequenceDelay": 0,
    "Predecessor": null,
    "PredecessorId": 65535,
    "ShouldBlockOnActivation": false,
    "ShouldBlockOnDeactivation": false
},
{
    "ActionMappingIndexToBlockOnActivation": 65535,
    "ActionMappingIndexToBlockOnDeactivation": 65535,
    "ActivationOutputActionItems": [],
    "DeactivationOutputActionItems": [],
    "Id": "1",
    "InputActionType": {
        "$type": "ZMouseConfig.InputActionTypes.ImuAngleRangeInputActionType, ZMouseConfig",
        "Axis": "yaw",
        "DataType": "oneRangeAndRangeInstance",
        "Id": "imuAngleRange",
        "IsValid": true,
        "LeftRange": {
            "EndDegreeTenths": 1800,
            "IsValid": true,
            "StartDegreeTenths": 1720
        },
        "Mirrored": true,
        "RightRange": {
            "EndDegreeTenths": 1880,
            "IsValid": true,
            "StartDegreeTenths": 1800
        }
    },
    "ItemType": "actionMapping",
    "OutputActionSequenceDelay": 0,
    "Predecessor": null,
    "PredecessorId": 65535,
    "ShouldBlockOnActivation": false,
    "ShouldBlockOnDeactivation": false
}
  • Paste it at the end of the list, not the start. A nested mapping refers to its parent by its place in the list, so text added earlier moves them onto the wrong parent.

Here is the pasted text in Visual Studio Code after inserting the text:

image.png

3. Import the profile

Click Manage profiles, then Import... and open the edited file. Tick the profile and click Import Selected....

Manage profiles after Import, with the profile and Import Selected marked

X1 asks what to do, as you already have a profile with that name. Click Replace to update it.

The Replace prompt when importing a profile you already have

4. Set up the pivot mappings

Turn on Expert View and open Mappings. The three pivot mappings are at the end of the list. Give each one an action as you would any other mapping, delete any you don't need, then click Save.

Pivot Left, Pivot Right and Analog Pivot mappings with no parent input, at the end of the mapping list

  • Click a pivot's name to change its angle.
  • For a joystick, give the Analog Pivot a joystick axis, such as Joystick Axis Z Rotation.

Still need a hand? 💁‍♂️

If you can't find what you're looking for, reach out to our support team.