- Add input mode switching to the Input Manager - Automatically set input mode on scene load - UI for MainMenu and GameAndUI for other scenes - Add PauseMenu prefab, auto-loaded via the boostrap system - Automatically control PauseMenu visibility based on current scene Co-authored-by: AlexanderT <alexander@foolhardyhorizons.com> Co-authored-by: Michal Pikulski <michal.a.pikulski@gmail.com> Reviewed-on: #8
591 lines
23 KiB
Plaintext
591 lines
23 KiB
Plaintext
{
|
|
"version": 1,
|
|
"name": "PlayerTouchActions",
|
|
"maps": [
|
|
{
|
|
"name": "PlayerTouch",
|
|
"id": "53d55b3c-f7c2-4706-a857-c615ecb16ff7",
|
|
"actions": [
|
|
{
|
|
"name": "TouchPosition",
|
|
"type": "Value",
|
|
"id": "f615672c-a395-4335-826c-d14ae764c4b5",
|
|
"expectedControlType": "Vector2",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": true
|
|
},
|
|
{
|
|
"name": "TapMove",
|
|
"type": "Button",
|
|
"id": "a77a5b0d-26e8-4b6c-b23b-828c50b3108f",
|
|
"expectedControlType": "",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "HoldMove",
|
|
"type": "Button",
|
|
"id": "99ae0aa3-a70e-4afc-8a8a-c7d6144fa75b",
|
|
"expectedControlType": "",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": true
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"name": "",
|
|
"id": "94ea85eb-4b37-460d-8b4d-518d80e63349",
|
|
"path": "<Touchscreen>/position",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "TouchPosition",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "f3dcd77f-15e5-4621-af67-001e6b08e3e6",
|
|
"path": "<Touchscreen>/Press",
|
|
"interactions": "Tap(duration=0.2)",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "TapMove",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "19cc6a3f-9316-4da5-8e35-8297e02b8f6c",
|
|
"path": "<Touchscreen>/Press",
|
|
"interactions": "Hold(duration=0.2)",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "HoldMove",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "UI",
|
|
"id": "12cf45dc-5cb9-4cc1-b345-1169f531df44",
|
|
"actions": [
|
|
{
|
|
"name": "Navigate",
|
|
"type": "PassThrough",
|
|
"id": "cef0a4a7-0193-44a6-bad9-f46ca2845c43",
|
|
"expectedControlType": "Vector2",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "Submit",
|
|
"type": "Button",
|
|
"id": "843a4564-118d-44ea-8bd3-edcdc48f98c3",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "Cancel",
|
|
"type": "Button",
|
|
"id": "4a050dc0-bc3d-4941-aec6-d8d539f3e4b3",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "Point",
|
|
"type": "PassThrough",
|
|
"id": "a03cf960-cfac-495c-9344-de5f5ef44bba",
|
|
"expectedControlType": "Vector2",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": true
|
|
},
|
|
{
|
|
"name": "Click",
|
|
"type": "PassThrough",
|
|
"id": "7e486236-0e6f-4f21-ade8-0ab696112f8e",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": true
|
|
},
|
|
{
|
|
"name": "RightClick",
|
|
"type": "PassThrough",
|
|
"id": "09458b52-8a45-4617-a412-000ed647d359",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "MiddleClick",
|
|
"type": "PassThrough",
|
|
"id": "7c721d8a-977d-4ff7-87b2-19dbd4eb5ea6",
|
|
"expectedControlType": "Button",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "ScrollWheel",
|
|
"type": "PassThrough",
|
|
"id": "e6a073b0-0030-42c2-88ef-85d828760630",
|
|
"expectedControlType": "Vector2",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "TrackedDevicePosition",
|
|
"type": "PassThrough",
|
|
"id": "efcff6db-3f65-4107-8658-7e56305f2c8a",
|
|
"expectedControlType": "Vector3",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
},
|
|
{
|
|
"name": "TrackedDeviceOrientation",
|
|
"type": "PassThrough",
|
|
"id": "2c7ed826-65c6-4dc4-81c7-536d62bbede1",
|
|
"expectedControlType": "Quaternion",
|
|
"processors": "",
|
|
"interactions": "",
|
|
"initialStateCheck": false
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"name": "Gamepad",
|
|
"id": "499b8c05-0325-4b99-9be0-9c8aa41ec39d",
|
|
"path": "2DVector",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Navigate",
|
|
"isComposite": true,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "up",
|
|
"id": "e5794321-3fc2-4ca8-a7a9-e35446b102ef",
|
|
"path": "<Gamepad>/leftStick/up",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "up",
|
|
"id": "72f978c8-23be-4e97-8609-0b1426355553",
|
|
"path": "<Gamepad>/rightStick/up",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "down",
|
|
"id": "6009f3e0-d95b-4440-a827-617812265049",
|
|
"path": "<Gamepad>/leftStick/down",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "down",
|
|
"id": "590f0119-784f-45f3-97b6-5ffbfad9941f",
|
|
"path": "<Gamepad>/rightStick/down",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "left",
|
|
"id": "e3588172-d7ee-4395-bc1a-3fc013f42400",
|
|
"path": "<Gamepad>/leftStick/left",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "left",
|
|
"id": "4da29037-9c91-4140-8068-68a7375cdc4e",
|
|
"path": "<Gamepad>/rightStick/left",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "right",
|
|
"id": "4620550c-3f8f-437c-a426-ad3e52b2764c",
|
|
"path": "<Gamepad>/leftStick/right",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "right",
|
|
"id": "c74b9635-b880-45f5-a469-5cb8c2b83909",
|
|
"path": "<Gamepad>/rightStick/right",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "7a2feef9-0779-498f-a6ae-08484b606d07",
|
|
"path": "<Gamepad>/dpad",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Gamepad",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "Joystick",
|
|
"id": "cd58a9a8-6605-4b26-8fb3-466b928fad60",
|
|
"path": "2DVector",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Navigate",
|
|
"isComposite": true,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "up",
|
|
"id": "be8cdff0-47f9-4546-a919-405e54580ea5",
|
|
"path": "<Joystick>/stick/up",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Joystick",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "down",
|
|
"id": "04487afd-6a42-471a-ae70-49d7583ad93b",
|
|
"path": "<Joystick>/stick/down",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Joystick",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "left",
|
|
"id": "d327788e-3a9a-4c14-97c8-b46bff05cf16",
|
|
"path": "<Joystick>/stick/left",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Joystick",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "right",
|
|
"id": "4c760fb6-00fc-46bc-8a0f-e1be2a3a91cd",
|
|
"path": "<Joystick>/stick/right",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Joystick",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "Keyboard",
|
|
"id": "21afa4c3-8c86-4939-bafc-c75c37368f04",
|
|
"path": "2DVector",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "",
|
|
"action": "Navigate",
|
|
"isComposite": true,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "up",
|
|
"id": "1d6ea17c-5d6b-4ae5-9881-cf787fd492ed",
|
|
"path": "<Keyboard>/w",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "up",
|
|
"id": "6e90418f-6f67-4248-bbb4-90243304f39a",
|
|
"path": "<Keyboard>/upArrow",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "down",
|
|
"id": "6be3eb21-d6ea-458d-a66f-f82487ec9139",
|
|
"path": "<Keyboard>/s",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "down",
|
|
"id": "3188c496-3978-454b-be6f-944521aabea4",
|
|
"path": "<Keyboard>/downArrow",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "left",
|
|
"id": "00de0415-2218-4887-9ad6-e4a6c1dacc5b",
|
|
"path": "<Keyboard>/a",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "left",
|
|
"id": "f723bc7b-263d-4619-93aa-0afdc40f3bc3",
|
|
"path": "<Keyboard>/leftArrow",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "right",
|
|
"id": "f3530c12-f67f-437a-979e-2271af5b2d2d",
|
|
"path": "<Keyboard>/d",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "right",
|
|
"id": "d760d39b-f0b3-4823-a705-c20b641b5720",
|
|
"path": "<Keyboard>/rightArrow",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Navigate",
|
|
"isComposite": false,
|
|
"isPartOfComposite": true
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "2cc2aec1-4255-4cab-bb40-0a894a0d87d3",
|
|
"path": "*/{Submit}",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse;Gamepad;Touch;Joystick;XR",
|
|
"action": "Submit",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "fbe038e0-74cf-48bc-b013-4d6f9e817833",
|
|
"path": "*/{Cancel}",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse;Gamepad;Touch;Joystick;XR",
|
|
"action": "Cancel",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "21be382d-dc2e-4360-bdb6-a3cc412a0abe",
|
|
"path": "<Mouse>/position",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Point",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "38f39dfe-e703-4be0-8fcf-6de2167518c1",
|
|
"path": "<Pen>/position",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "Point",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "5bbcf2f7-aea0-4067-ae32-aaf383287fb3",
|
|
"path": "<Touchscreen>/touch*/position",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Touch",
|
|
"action": "Point",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "32dde7e0-9557-4429-a882-7c87540c7e53",
|
|
"path": "<Mouse>/leftButton",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Keyboard&Mouse",
|
|
"action": "Click",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "f22741eb-66dd-4e3e-aaca-94d92991235c",
|
|
"path": "<Pen>/tip",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Keyboard&Mouse",
|
|
"action": "Click",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "1bec0af0-b75f-43da-a4a7-7de7f952df13",
|
|
"path": "<Touchscreen>/touch*/press",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Touch",
|
|
"action": "Click",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "d281b478-404c-47ec-95d3-ddcdcc19369a",
|
|
"path": "<XRController>/trigger",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "XR",
|
|
"action": "Click",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "ea2e7ff3-1a42-4202-8c53-abcae2467bb2",
|
|
"path": "<Mouse>/scroll",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": ";Keyboard&Mouse",
|
|
"action": "ScrollWheel",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "b0b7ca17-b763-4af6-a02a-0fcfbf043c37",
|
|
"path": "<Mouse>/rightButton",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "RightClick",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "c3146994-3749-4211-a80a-5766edd782e3",
|
|
"path": "<Mouse>/middleButton",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "Keyboard&Mouse",
|
|
"action": "MiddleClick",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "35aad27d-6a71-481b-b308-7763de690931",
|
|
"path": "<XRController>/devicePosition",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "XR",
|
|
"action": "TrackedDevicePosition",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
},
|
|
{
|
|
"name": "",
|
|
"id": "d116b82b-e40f-4ab3-b7b8-eec40f53e88a",
|
|
"path": "<XRController>/deviceRotation",
|
|
"interactions": "",
|
|
"processors": "",
|
|
"groups": "XR",
|
|
"action": "TrackedDeviceOrientation",
|
|
"isComposite": false,
|
|
"isPartOfComposite": false
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"controlSchemes": []
|
|
} |