fix
This commit is contained in:
@@ -68,7 +68,7 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""name"": ""Rotate"",
|
||||
""type"": ""Value"",
|
||||
""id"": ""d269ae49-9dbe-4e7c-9a80-1276e29898d8"",
|
||||
""expectedControlType"": ""Axis"",
|
||||
""expectedControlType"": ""Vector2"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": true
|
||||
@@ -77,19 +77,10 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""name"": ""Zoom"",
|
||||
""type"": ""Value"",
|
||||
""id"": ""41d86dbc-39e0-4655-bc19-0eab9d5014a6"",
|
||||
""expectedControlType"": ""Axis"",
|
||||
""expectedControlType"": ""Vector2"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": true
|
||||
},
|
||||
{
|
||||
""name"": ""MouseRotate"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""646b1fc6-f255-4d12-927e-de1a93611e1b"",
|
||||
""expectedControlType"": ""Button"",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -149,9 +140,9 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""1D Axis"",
|
||||
""id"": ""4c934323-993d-4354-8897-20bcd2f9dddc"",
|
||||
""path"": ""1DAxis"",
|
||||
""name"": ""One Modifier"",
|
||||
""id"": ""921968f3-646e-4a34-ae14-f68c8034a225"",
|
||||
""path"": ""OneModifier"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
@@ -160,9 +151,9 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Negative"",
|
||||
""id"": ""6f9e4496-b244-4667-8720-9096c41e3b4a"",
|
||||
""path"": ""<Keyboard>/e"",
|
||||
""name"": ""modifier"",
|
||||
""id"": ""36967647-01b0-4446-99ec-8467c5282970"",
|
||||
""path"": ""<Mouse>/middleButton"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
@@ -171,8 +162,30 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""Positive"",
|
||||
""id"": ""a89182c9-b935-4450-94e4-6d630806f6cc"",
|
||||
""name"": ""binding"",
|
||||
""id"": ""23cd5caa-3052-46e5-b888-9b7097cffc1b"",
|
||||
""path"": ""<Mouse>/delta"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Rotate"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""2D Vector"",
|
||||
""id"": ""1a1f22ab-5004-4133-844c-f3fd67792699"",
|
||||
""path"": ""2DVector"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Rotate"",
|
||||
""isComposite"": true,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": ""left"",
|
||||
""id"": ""70123c0f-2726-4ff5-9a04-83d845177032"",
|
||||
""path"": ""<Keyboard>/q"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
@@ -182,46 +195,24 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""1D Axis"",
|
||||
""id"": ""c813ebc8-78b7-4e4d-8340-564c7231e367"",
|
||||
""path"": ""1DAxis"",
|
||||
""name"": ""right"",
|
||||
""id"": ""81380d14-07da-4e3e-b74d-13a4bc2edc1d"",
|
||||
""path"": ""<Keyboard>/e"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Zoom"",
|
||||
""isComposite"": true,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": ""negative"",
|
||||
""id"": ""6bc3cbff-c850-49b7-bb63-6d49712aa2b7"",
|
||||
""path"": ""<Mouse>/scroll/down"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Zoom"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": ""positive"",
|
||||
""id"": ""d1a58c3b-b104-4c55-ab6f-faaf03b9b5c5"",
|
||||
""path"": ""<Mouse>/scroll/up"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Zoom"",
|
||||
""action"": ""Rotate"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": true
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""e84dc7e3-3c1e-4bb9-af62-e3ef4261fbbc"",
|
||||
""path"": ""<Mouse>/middleButton"",
|
||||
""id"": ""8e2aefc6-bf10-4653-8782-6b92d5efc35a"",
|
||||
""path"": ""<Mouse>/scroll"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""processors"": ""NormalizeVector2"",
|
||||
""groups"": """",
|
||||
""action"": ""MouseRotate"",
|
||||
""action"": ""Zoom"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
@@ -238,7 +229,6 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
m_Camera_Move = m_Camera.FindAction("Move", throwIfNotFound: true);
|
||||
m_Camera_Rotate = m_Camera.FindAction("Rotate", throwIfNotFound: true);
|
||||
m_Camera_Zoom = m_Camera.FindAction("Zoom", throwIfNotFound: true);
|
||||
m_Camera_MouseRotate = m_Camera.FindAction("MouseRotate", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
@@ -349,7 +339,6 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
private readonly InputAction m_Camera_Move;
|
||||
private readonly InputAction m_Camera_Rotate;
|
||||
private readonly InputAction m_Camera_Zoom;
|
||||
private readonly InputAction m_Camera_MouseRotate;
|
||||
public struct CameraActions
|
||||
{
|
||||
private @InputActions m_Wrapper;
|
||||
@@ -357,7 +346,6 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
public InputAction @Move => m_Wrapper.m_Camera_Move;
|
||||
public InputAction @Rotate => m_Wrapper.m_Camera_Rotate;
|
||||
public InputAction @Zoom => m_Wrapper.m_Camera_Zoom;
|
||||
public InputAction @MouseRotate => m_Wrapper.m_Camera_MouseRotate;
|
||||
public InputActionMap Get() { return m_Wrapper.m_Camera; }
|
||||
public void Enable() { Get().Enable(); }
|
||||
public void Disable() { Get().Disable(); }
|
||||
@@ -376,9 +364,6 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
@Zoom.started += instance.OnZoom;
|
||||
@Zoom.performed += instance.OnZoom;
|
||||
@Zoom.canceled += instance.OnZoom;
|
||||
@MouseRotate.started += instance.OnMouseRotate;
|
||||
@MouseRotate.performed += instance.OnMouseRotate;
|
||||
@MouseRotate.canceled += instance.OnMouseRotate;
|
||||
}
|
||||
|
||||
private void UnregisterCallbacks(ICameraActions instance)
|
||||
@@ -392,9 +377,6 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
@Zoom.started -= instance.OnZoom;
|
||||
@Zoom.performed -= instance.OnZoom;
|
||||
@Zoom.canceled -= instance.OnZoom;
|
||||
@MouseRotate.started -= instance.OnMouseRotate;
|
||||
@MouseRotate.performed -= instance.OnMouseRotate;
|
||||
@MouseRotate.canceled -= instance.OnMouseRotate;
|
||||
}
|
||||
|
||||
public void RemoveCallbacks(ICameraActions instance)
|
||||
@@ -421,6 +403,5 @@ public partial class @InputActions: IInputActionCollection2, IDisposable
|
||||
void OnMove(InputAction.CallbackContext context);
|
||||
void OnRotate(InputAction.CallbackContext context);
|
||||
void OnZoom(InputAction.CallbackContext context);
|
||||
void OnMouseRotate(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user