@@ -89,6 +89,24 @@ public @PlayerInputs()
89
89
""processors"": """",
90
90
""interactions"": """",
91
91
""initialStateCheck"": false
92
+ },
93
+ {
94
+ ""name"": ""PvP_WeaponSwapLeft"",
95
+ ""type"": ""Button"",
96
+ ""id"": ""ecc5990e-695c-4d14-a0d6-a4af9964aa9a"",
97
+ ""expectedControlType"": ""Button"",
98
+ ""processors"": """",
99
+ ""interactions"": """",
100
+ ""initialStateCheck"": false
101
+ },
102
+ {
103
+ ""name"": ""PvP_WeaponSwapRight"",
104
+ ""type"": ""Button"",
105
+ ""id"": ""b9387764-88a7-4c38-8d47-83bbe0384ab9"",
106
+ ""expectedControlType"": ""Button"",
107
+ ""processors"": """",
108
+ ""interactions"": """",
109
+ ""initialStateCheck"": false
92
110
}
93
111
],
94
112
""bindings"": [
@@ -289,6 +307,28 @@ public @PlayerInputs()
289
307
""action"": ""Pause"",
290
308
""isComposite"": false,
291
309
""isPartOfComposite"": false
310
+ },
311
+ {
312
+ ""name"": """",
313
+ ""id"": ""60ebb146-67c0-408f-bb2f-ce4b55ba42a4"",
314
+ ""path"": ""<Gamepad>/leftShoulder"",
315
+ ""interactions"": """",
316
+ ""processors"": """",
317
+ ""groups"": """",
318
+ ""action"": ""PvP_WeaponSwapLeft"",
319
+ ""isComposite"": false,
320
+ ""isPartOfComposite"": false
321
+ },
322
+ {
323
+ ""name"": """",
324
+ ""id"": ""2b24f6d7-26c8-4b3f-91ed-d88ada35f2f9"",
325
+ ""path"": ""<Gamepad>/rightShoulder"",
326
+ ""interactions"": """",
327
+ ""processors"": """",
328
+ ""groups"": """",
329
+ ""action"": ""PvP_WeaponSwapRight"",
330
+ ""isComposite"": false,
331
+ ""isPartOfComposite"": false
292
332
}
293
333
]
294
334
},
@@ -465,7 +505,19 @@ public @PlayerInputs()
465
505
]
466
506
}
467
507
],
468
- ""controlSchemes"": []
508
+ ""controlSchemes"": [
509
+ {
510
+ ""name"": ""PvP"",
511
+ ""bindingGroup"": ""PvP"",
512
+ ""devices"": [
513
+ {
514
+ ""devicePath"": ""<Gamepad>"",
515
+ ""isOptional"": false,
516
+ ""isOR"": false
517
+ }
518
+ ]
519
+ }
520
+ ]
469
521
}" ) ;
470
522
// Player_Map
471
523
m_Player_Map = asset . FindActionMap ( "Player_Map" , throwIfNotFound : true ) ;
@@ -476,6 +528,8 @@ public @PlayerInputs()
476
528
m_Player_Map_Shoot = m_Player_Map . FindAction ( "Shoot" , throwIfNotFound : true ) ;
477
529
m_Player_Map_Dodge = m_Player_Map . FindAction ( "Dodge" , throwIfNotFound : true ) ;
478
530
m_Player_Map_Pause = m_Player_Map . FindAction ( "Pause" , throwIfNotFound : true ) ;
531
+ m_Player_Map_PvP_WeaponSwapLeft = m_Player_Map . FindAction ( "PvP_WeaponSwapLeft" , throwIfNotFound : true ) ;
532
+ m_Player_Map_PvP_WeaponSwapRight = m_Player_Map . FindAction ( "PvP_WeaponSwapRight" , throwIfNotFound : true ) ;
479
533
// Menus_Map
480
534
m_Menus_Map = asset . FindActionMap ( "Menus_Map" , throwIfNotFound : true ) ;
481
535
m_Menus_Map_Up = m_Menus_Map . FindAction ( "Up" , throwIfNotFound : true ) ;
@@ -550,6 +604,8 @@ public int FindBinding(InputBinding bindingMask, out InputAction action)
550
604
private readonly InputAction m_Player_Map_Shoot ;
551
605
private readonly InputAction m_Player_Map_Dodge ;
552
606
private readonly InputAction m_Player_Map_Pause ;
607
+ private readonly InputAction m_Player_Map_PvP_WeaponSwapLeft ;
608
+ private readonly InputAction m_Player_Map_PvP_WeaponSwapRight ;
553
609
public struct Player_MapActions
554
610
{
555
611
private @PlayerInputs m_Wrapper ;
@@ -561,6 +617,8 @@ public struct Player_MapActions
561
617
public InputAction @Shoot => m_Wrapper . m_Player_Map_Shoot ;
562
618
public InputAction @Dodge => m_Wrapper . m_Player_Map_Dodge ;
563
619
public InputAction @Pause => m_Wrapper . m_Player_Map_Pause ;
620
+ public InputAction @PvP_WeaponSwapLeft => m_Wrapper . m_Player_Map_PvP_WeaponSwapLeft ;
621
+ public InputAction @PvP_WeaponSwapRight => m_Wrapper . m_Player_Map_PvP_WeaponSwapRight ;
564
622
public InputActionMap Get ( ) { return m_Wrapper . m_Player_Map ; }
565
623
public void Enable ( ) { Get ( ) . Enable ( ) ; }
566
624
public void Disable ( ) { Get ( ) . Disable ( ) ; }
@@ -591,6 +649,12 @@ public void SetCallbacks(IPlayer_MapActions instance)
591
649
@Pause . started -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPause ;
592
650
@Pause . performed -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPause ;
593
651
@Pause . canceled -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPause ;
652
+ @PvP_WeaponSwapLeft . started -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapLeft ;
653
+ @PvP_WeaponSwapLeft . performed -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapLeft ;
654
+ @PvP_WeaponSwapLeft . canceled -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapLeft ;
655
+ @PvP_WeaponSwapRight . started -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapRight ;
656
+ @PvP_WeaponSwapRight . performed -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapRight ;
657
+ @PvP_WeaponSwapRight . canceled -= m_Wrapper . m_Player_MapActionsCallbackInterface . OnPvP_WeaponSwapRight ;
594
658
}
595
659
m_Wrapper . m_Player_MapActionsCallbackInterface = instance ;
596
660
if ( instance != null )
@@ -616,6 +680,12 @@ public void SetCallbacks(IPlayer_MapActions instance)
616
680
@Pause . started += instance . OnPause ;
617
681
@Pause . performed += instance . OnPause ;
618
682
@Pause . canceled += instance . OnPause ;
683
+ @PvP_WeaponSwapLeft . started += instance . OnPvP_WeaponSwapLeft ;
684
+ @PvP_WeaponSwapLeft . performed += instance . OnPvP_WeaponSwapLeft ;
685
+ @PvP_WeaponSwapLeft . canceled += instance . OnPvP_WeaponSwapLeft ;
686
+ @PvP_WeaponSwapRight . started += instance . OnPvP_WeaponSwapRight ;
687
+ @PvP_WeaponSwapRight . performed += instance . OnPvP_WeaponSwapRight ;
688
+ @PvP_WeaponSwapRight . canceled += instance . OnPvP_WeaponSwapRight ;
619
689
}
620
690
}
621
691
}
@@ -693,6 +763,15 @@ public void SetCallbacks(IMenus_MapActions instance)
693
763
}
694
764
}
695
765
public Menus_MapActions @Menus_Map => new Menus_MapActions ( this ) ;
766
+ private int m_PvPSchemeIndex = - 1 ;
767
+ public InputControlScheme PvPScheme
768
+ {
769
+ get
770
+ {
771
+ if ( m_PvPSchemeIndex == - 1 ) m_PvPSchemeIndex = asset . FindControlSchemeIndex ( "PvP" ) ;
772
+ return asset . controlSchemes [ m_PvPSchemeIndex ] ;
773
+ }
774
+ }
696
775
public interface IPlayer_MapActions
697
776
{
698
777
void OnMovement ( InputAction . CallbackContext context ) ;
@@ -702,6 +781,8 @@ public interface IPlayer_MapActions
702
781
void OnShoot ( InputAction . CallbackContext context ) ;
703
782
void OnDodge ( InputAction . CallbackContext context ) ;
704
783
void OnPause ( InputAction . CallbackContext context ) ;
784
+ void OnPvP_WeaponSwapLeft ( InputAction . CallbackContext context ) ;
785
+ void OnPvP_WeaponSwapRight ( InputAction . CallbackContext context ) ;
705
786
}
706
787
public interface IMenus_MapActions
707
788
{
0 commit comments