完成按键输入按键显示
This commit is contained in:
@@ -1116,6 +1116,15 @@ namespace NBF
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
},
|
||||
{
|
||||
""name"": ""Test"",
|
||||
""type"": ""Button"",
|
||||
""id"": ""23651163-b9ce-4bed-9636-1b816c87524f"",
|
||||
""expectedControlType"": """",
|
||||
""processors"": """",
|
||||
""interactions"": """",
|
||||
""initialStateCheck"": false
|
||||
}
|
||||
],
|
||||
""bindings"": [
|
||||
@@ -1339,17 +1348,6 @@ namespace NBF
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""ec9eb0c2-a2e0-47eb-ac8b-52cb0ef46101"",
|
||||
""path"": ""<Keyboard>/rightArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Right"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""031b930d-59b6-4a26-9dfe-97764c3e8b37"",
|
||||
@@ -1372,17 +1370,6 @@ namespace NBF
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""680b36f2-5797-4257-83a7-3a498891d856"",
|
||||
""path"": ""<Keyboard>/leftArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Left"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""45f78626-cbf2-4e1f-904d-d82e4c2a2f41"",
|
||||
@@ -1405,17 +1392,6 @@ namespace NBF
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""40501ac1-9d3e-4059-8e8f-ff7035f6e32e"",
|
||||
""path"": ""<Keyboard>/downArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Down"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""f1a47b3c-e79f-4ab3-86b6-fcc0a6470114"",
|
||||
@@ -1438,17 +1414,6 @@ namespace NBF
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""9996c4e1-f7fb-4793-ab51-da569bdbab09"",
|
||||
""path"": ""<Keyboard>/upArrow"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Up"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""3069f356-c73e-4bac-88f5-88bd6d746bc2"",
|
||||
@@ -1459,6 +1424,17 @@ namespace NBF
|
||||
""action"": ""Reset"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
},
|
||||
{
|
||||
""name"": """",
|
||||
""id"": ""52d8aeb1-8b70-4dfd-b645-496d47098926"",
|
||||
""path"": ""<Keyboard>/f1"",
|
||||
""interactions"": """",
|
||||
""processors"": """",
|
||||
""groups"": """",
|
||||
""action"": ""Test"",
|
||||
""isComposite"": false,
|
||||
""isPartOfComposite"": false
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1578,6 +1554,7 @@ namespace NBF
|
||||
m_UI_Down = m_UI.FindAction("Down", throwIfNotFound: true);
|
||||
m_UI_Up = m_UI.FindAction("Up", throwIfNotFound: true);
|
||||
m_UI_Reset = m_UI.FindAction("Reset", throwIfNotFound: true);
|
||||
m_UI_Test = m_UI.FindAction("Test", throwIfNotFound: true);
|
||||
}
|
||||
|
||||
~@PlayerInputControl()
|
||||
@@ -2152,6 +2129,7 @@ namespace NBF
|
||||
private readonly InputAction m_UI_Down;
|
||||
private readonly InputAction m_UI_Up;
|
||||
private readonly InputAction m_UI_Reset;
|
||||
private readonly InputAction m_UI_Test;
|
||||
/// <summary>
|
||||
/// Provides access to input actions defined in input action map "UI".
|
||||
/// </summary>
|
||||
@@ -2212,6 +2190,10 @@ namespace NBF
|
||||
/// </summary>
|
||||
public InputAction @Reset => m_Wrapper.m_UI_Reset;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action "UI/Test".
|
||||
/// </summary>
|
||||
public InputAction @Test => m_Wrapper.m_UI_Test;
|
||||
/// <summary>
|
||||
/// Provides access to the underlying input action map instance.
|
||||
/// </summary>
|
||||
public InputActionMap Get() { return m_Wrapper.m_UI; }
|
||||
@@ -2273,6 +2255,9 @@ namespace NBF
|
||||
@Reset.started += instance.OnReset;
|
||||
@Reset.performed += instance.OnReset;
|
||||
@Reset.canceled += instance.OnReset;
|
||||
@Test.started += instance.OnTest;
|
||||
@Test.performed += instance.OnTest;
|
||||
@Test.canceled += instance.OnTest;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2320,6 +2305,9 @@ namespace NBF
|
||||
@Reset.started -= instance.OnReset;
|
||||
@Reset.performed -= instance.OnReset;
|
||||
@Reset.canceled -= instance.OnReset;
|
||||
@Test.started -= instance.OnTest;
|
||||
@Test.performed -= instance.OnTest;
|
||||
@Test.canceled -= instance.OnTest;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -2769,6 +2757,13 @@ namespace NBF
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnReset(InputAction.CallbackContext context);
|
||||
/// <summary>
|
||||
/// Method invoked when associated input action "Test" is either <see cref="UnityEngine.InputSystem.InputAction.started" />, <see cref="UnityEngine.InputSystem.InputAction.performed" /> or <see cref="UnityEngine.InputSystem.InputAction.canceled" />.
|
||||
/// </summary>
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.started" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.performed" />
|
||||
/// <seealso cref="UnityEngine.InputSystem.InputAction.canceled" />
|
||||
void OnTest(InputAction.CallbackContext context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user