PlayerInputActions.inputactions
Unity doesn't have a RESET button for PlayerActions.
So I opened the file, which is in JSON format, and edited it. There, now I reset it manually through programming.
The Unity editor could have a RESET button for PlayerActions.
{
"name": "PlayerInputActions",
"maps": [
{
"name": "Gameplay",
"id": "player_gameplay",
"actions": [
{
"name": "Move",
"type": "Value",
"id": "act_move",
"expectedControlType": "Vector2"
},
{
"name": "Look",
"type": "Value",
"id": "act_look",
"expectedControlType": "Vector2"
},
{
"name": "Jump",
"type": "Button",
"id": "act_jump",
"expectedControlType": "Button"
},
{
"name": "Fire",
"type": "Button",
"id": "act_fire",
"expectedControlType": "Button"
},
{
"name": "Pause",
"type": "Button",
"id": "act_pause",
"expectedControlType": "Button"
}
],
"bindings": [
{
"name": "WASD",
"id": "bind_move_kb",
"path": "2DVector",
"action": "Move",
"isComposite": true,
"bindings": [
{ "name": "up", "path": "<Keyboard>/w" },
{ "name": "down", "path": "<Keyboard>/s" },
{ "name": "left", "path": "<Keyboard>/a" },
{ "name": "right", "path": "<Keyboard>/d" }
]
},
{
"id": "bind_move_gp",
"path": "<Gamepad>/leftStick",
"action": "Move"
},
{
"id": "bind_move_switch",
"path": "<HID::Switch Pro Controller>/stick",
"action": "Move"
},
{
"id": "bind_look_mouse",
"path": "<Mouse>/delta",
"action": "Look"
},
{
"id": "bind_look_gp",
"path": "<Gamepad>/rightStick",
"action": "Look"
},
{
"id": "bind_jump_kb",
"path": "<Keyboard>/space",
"action": "Jump"
},
{
"id": "bind_jump_gp",
"path": "<Gamepad>/buttonSouth",
"action": "Jump"
},
{
"id": "bind_jump_switch",
"path": "<HID::Switch Pro Controller>/buttonA",
"action": "Jump"
},
{
"id": "bind_fire_kb",
"path": "<Mouse>/leftButton",
"action": "Fire"
},
{
"id": "bind_fire_gp",
"path": "<Gamepad>/rightTrigger",
"action": "Fire"
},
{
"id": "bind_pause_kb",
"path": "<Keyboard>/escape",
"action": "Pause"
},
{
"id": "bind_pause_gp",
"path": "<Gamepad>/start",
"action": "Pause"
}
]
}
],
"controlSchemes": [
{
"name": "Keyboard&Mouse",
"bindingGroup": "Keyboard&Mouse",
"devices": [
{ "devicePath": "<Keyboard>" },
{ "devicePath": "<Mouse>" }
]
},
{
"name": "Gamepad",
"bindingGroup": "Gamepad",
"devices": [
{ "devicePath": "<Gamepad>" }
]
},
{
"name": "Switch",
"bindingGroup": "Switch",
"devices": [
{ "devicePath": "<HID::Switch Pro Controller>" }
]
}
]
}