@@ -80,6 +80,24 @@ public @PlayerInputAction()
80
80
""processors"": """",
81
81
""interactions"": """",
82
82
""initialStateCheck"": true
83
+ },
84
+ {
85
+ ""name"": ""Exit"",
86
+ ""type"": ""Button"",
87
+ ""id"": ""7243590f-53e4-4176-949d-3ea66b4ac43a"",
88
+ ""expectedControlType"": ""Button"",
89
+ ""processors"": """",
90
+ ""interactions"": """",
91
+ ""initialStateCheck"": false
92
+ },
93
+ {
94
+ ""name"": ""Reset"",
95
+ ""type"": ""Button"",
96
+ ""id"": ""2af38dcd-2b9f-4644-a43c-e1d24354f02c"",
97
+ ""expectedControlType"": ""Button"",
98
+ ""processors"": """",
99
+ ""interactions"": """",
100
+ ""initialStateCheck"": false
83
101
}
84
102
],
85
103
""bindings"": [
@@ -214,6 +232,28 @@ public @PlayerInputAction()
214
232
""action"": ""Grab"",
215
233
""isComposite"": false,
216
234
""isPartOfComposite"": false
235
+ },
236
+ {
237
+ ""name"": """",
238
+ ""id"": ""76f1dd18-91d8-4a4b-a516-f4a6736cb00f"",
239
+ ""path"": ""<Keyboard>/escape"",
240
+ ""interactions"": """",
241
+ ""processors"": """",
242
+ ""groups"": """",
243
+ ""action"": ""Exit"",
244
+ ""isComposite"": false,
245
+ ""isPartOfComposite"": false
246
+ },
247
+ {
248
+ ""name"": """",
249
+ ""id"": ""35e89958-fa07-414c-8329-d63ff74ac3f9"",
250
+ ""path"": ""<Keyboard>/r"",
251
+ ""interactions"": """",
252
+ ""processors"": """",
253
+ ""groups"": """",
254
+ ""action"": ""Reset"",
255
+ ""isComposite"": false,
256
+ ""isPartOfComposite"": false
217
257
}
218
258
]
219
259
},
@@ -574,6 +614,8 @@ public @PlayerInputAction()
574
614
m_KBMPlayer_Walk = m_KBMPlayer . FindAction ( "Walk" , throwIfNotFound : true ) ;
575
615
m_KBMPlayer_ControlBlock = m_KBMPlayer . FindAction ( "ControlBlock" , throwIfNotFound : true ) ;
576
616
m_KBMPlayer_Grab = m_KBMPlayer . FindAction ( "Grab" , throwIfNotFound : true ) ;
617
+ m_KBMPlayer_Exit = m_KBMPlayer . FindAction ( "Exit" , throwIfNotFound : true ) ;
618
+ m_KBMPlayer_Reset = m_KBMPlayer . FindAction ( "Reset" , throwIfNotFound : true ) ;
577
619
// VRPlayer
578
620
m_VRPlayer = asset . FindActionMap ( "VRPlayer" , throwIfNotFound : true ) ;
579
621
m_VRPlayer_LeftControllerPosition = m_VRPlayer . FindAction ( "LeftControllerPosition" , throwIfNotFound : true ) ;
@@ -656,6 +698,8 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
656
698
private readonly InputAction m_KBMPlayer_Walk ;
657
699
private readonly InputAction m_KBMPlayer_ControlBlock ;
658
700
private readonly InputAction m_KBMPlayer_Grab ;
701
+ private readonly InputAction m_KBMPlayer_Exit ;
702
+ private readonly InputAction m_KBMPlayer_Reset ;
659
703
public struct KBMPlayerActions
660
704
{
661
705
private @PlayerInputAction m_Wrapper ;
@@ -666,6 +710,8 @@ public struct KBMPlayerActions
666
710
public InputAction @Walk => m_Wrapper . m_KBMPlayer_Walk ;
667
711
public InputAction @ControlBlock => m_Wrapper . m_KBMPlayer_ControlBlock ;
668
712
public InputAction @Grab => m_Wrapper . m_KBMPlayer_Grab ;
713
+ public InputAction @Exit => m_Wrapper . m_KBMPlayer_Exit ;
714
+ public InputAction @Reset => m_Wrapper . m_KBMPlayer_Reset ;
669
715
public InputActionMap Get ( ) { return m_Wrapper . m_KBMPlayer ; }
670
716
public void Enable ( ) { Get ( ) . Enable ( ) ; }
671
717
public void Disable ( ) { Get ( ) . Disable ( ) ; }
@@ -693,6 +739,12 @@ public void SetCallbacks(IKBMPlayerActions instance)
693
739
@Grab . started -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnGrab ;
694
740
@Grab . performed -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnGrab ;
695
741
@Grab . canceled -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnGrab ;
742
+ @Exit . started -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnExit ;
743
+ @Exit . performed -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnExit ;
744
+ @Exit . canceled -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnExit ;
745
+ @Reset . started -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnReset ;
746
+ @Reset . performed -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnReset ;
747
+ @Reset . canceled -= m_Wrapper . m_KBMPlayerActionsCallbackInterface . OnReset ;
696
748
}
697
749
m_Wrapper . m_KBMPlayerActionsCallbackInterface = instance ;
698
750
if ( instance != null )
@@ -715,6 +767,12 @@ public void SetCallbacks(IKBMPlayerActions instance)
715
767
@Grab . started += instance . OnGrab ;
716
768
@Grab . performed += instance . OnGrab ;
717
769
@Grab . canceled += instance . OnGrab ;
770
+ @Exit . started += instance . OnExit ;
771
+ @Exit . performed += instance . OnExit ;
772
+ @Exit . canceled += instance . OnExit ;
773
+ @Reset . started += instance . OnReset ;
774
+ @Reset . performed += instance . OnReset ;
775
+ @Reset . canceled += instance . OnReset ;
718
776
}
719
777
}
720
778
}
@@ -890,6 +948,8 @@ public interface IKBMPlayerActions
890
948
void OnWalk ( InputAction . CallbackContext context ) ;
891
949
void OnControlBlock ( InputAction . CallbackContext context ) ;
892
950
void OnGrab ( InputAction . CallbackContext context ) ;
951
+ void OnExit ( InputAction . CallbackContext context ) ;
952
+ void OnReset ( InputAction . CallbackContext context ) ;
893
953
}
894
954
public interface IVRPlayerActions
895
955
{
0 commit comments