add o3n
This commit is contained in:
@@ -369,6 +369,24 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""RightClick"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""f04e7462-2414-4136-a397-d84fdae25f60"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""MouseLook"",
|
||||
""type"": ""Value"",
|
||||
""id"": ""2917b333-0187-4f4c-95f4-051b07c782a0"",
|
||||
""expectedControlType"": ""Vector2"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": true
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -393,6 +411,28 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""action"": ""Point"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""e8c93b7b-1194-47b7-adf2-9aeab672513b"",
|
||||
""path"": ""<Mouse>/rightButton"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""RightClick"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""1dfc4bef-7b2f-4cef-ab17-41260e8788be"",
|
||||
""path"": ""<Mouse>/delta"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""MouseLook"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -412,6 +452,8 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
m_UI = asset.FindActionMap("UI", throwIfNotFound: true);
|
||||
m_UI_Click = m_UI.FindAction("Click", throwIfNotFound: true);
|
||||
m_UI_Point = m_UI.FindAction("Point", throwIfNotFound: true);
|
||||
m_UI_RightClick = m_UI.FindAction("RightClick", throwIfNotFound: true);
|
||||
m_UI_MouseLook = m_UI.FindAction("MouseLook", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@InputActions()
|
||||
@@ -598,12 +640,16 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
private List<IUIActions> m_UIActionsCallbackInterfaces = new List<IUIActions>();
|
||||
private readonly InputAction m_UI_Click;
|
||||
private readonly InputAction m_UI_Point;
|
||||
private readonly InputAction m_UI_RightClick;
|
||||
private readonly InputAction m_UI_MouseLook;
|
||||
public struct UIActions
|
||||
{
|
||||
private @InputActions m_Wrapper;
|
||||
public UIActions(@InputActions wrapper) { m_Wrapper = wrapper; }
|
||||
public InputAction @Click => m_Wrapper.m_UI_Click;
|
||||
public InputAction @Point => m_Wrapper.m_UI_Point;
|
||||
public InputAction @RightClick => m_Wrapper.m_UI_RightClick;
|
||||
public InputAction @MouseLook => m_Wrapper.m_UI_MouseLook;
|
||||
public InputActionMap Get() { return m_Wrapper.m_UI; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
@@ -619,6 +665,12 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
@Point.started += instance.OnPoint;
|
||||
@Point.performed += instance.OnPoint;
|
||||
@Point.canceled += instance.OnPoint;
|
||||
@RightClick.started += instance.OnRightClick;
|
||||
@RightClick.performed += instance.OnRightClick;
|
||||
@RightClick.canceled += instance.OnRightClick;
|
||||
@MouseLook.started += instance.OnMouseLook;
|
||||
@MouseLook.performed += instance.OnMouseLook;
|
||||
@MouseLook.canceled += instance.OnMouseLook;
|
||||
}
|
||||
|
||||
private void UnregisterCallbacks(IUIActions instance)
|
||||
@@ -629,6 +681,12 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
@Point.started -= instance.OnPoint;
|
||||
@Point.performed -= instance.OnPoint;
|
||||
@Point.canceled -= instance.OnPoint;
|
||||
@RightClick.started -= instance.OnRightClick;
|
||||
@RightClick.performed -= instance.OnRightClick;
|
||||
@RightClick.canceled -= instance.OnRightClick;
|
||||
@MouseLook.started -= instance.OnMouseLook;
|
||||
@MouseLook.performed -= instance.OnMouseLook;
|
||||
@MouseLook.canceled -= instance.OnMouseLook;
|
||||
}
|
||||
|
||||
public void RemoveCallbacks(IUIActions instance)
|
||||
@@ -661,5 +719,7 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
{
|
||||
void OnClick(InputAction.CallbackContext context);
|
||||
void OnPoint(InputAction.CallbackContext context);
|
||||
void OnRightClick(InputAction.CallbackContext context);
|
||||
void OnMouseLook(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -347,6 +347,24 @@
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "RightClick",
|
||||
"type": "Button",
|
||||
"id": "f04e7462-2414-4136-a397-d84fdae25f60",
|
||||
"expectedControlType": "",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": false
|
||||
},
|
||||
{
|
||||
"name": "MouseLook",
|
||||
"type": "Value",
|
||||
"id": "2917b333-0187-4f4c-95f4-051b07c782a0",
|
||||
"expectedControlType": "Vector2",
|
||||
"processors": "",
|
||||
"interactions": "",
|
||||
"initialStateCheck": true
|
||||
}
|
||||
],
|
||||
"bindings": [
|
||||
@@ -371,6 +389,28 @@
|
||||
"action": "Point",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "e8c93b7b-1194-47b7-adf2-9aeab672513b",
|
||||
"path": "<Mouse>/rightButton",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "RightClick",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"id": "1dfc4bef-7b2f-4cef-ab17-41260e8788be",
|
||||
"path": "<Mouse>/delta",
|
||||
"interactions": "",
|
||||
"processors": "",
|
||||
"groups": "",
|
||||
"action": "MouseLook",
|
||||
"isComposite": false,
|
||||
"isPartOfComposite": false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user