@@ -40,10 +40,6 @@ public void BasicInputProcessing()
40
40
41
41
private static readonly IReadOnlyList < string > _modifierKeys = new [ ] { "Super" , "Ctrl" , "Alt" , "Shift" } ;
42
42
43
- private static readonly int PRIORITY_BOTH = 0 ;
44
- private static readonly int PRIORITY_INPUT = 1 ;
45
- private static readonly int PRIORITY_HOTKEY = 2 ;
46
-
47
43
private InputEvent MakePressEvent ( string keyboardButton , uint modifiers = 0 )
48
44
{
49
45
return new ( )
@@ -284,7 +280,7 @@ public void SinglePressCanDoControllerAndHotkeyInput()
284
280
Context context = MakeContext ( ) ;
285
281
InputManager manager = context . manager ;
286
282
FakeInputSource source = context . source ;
287
- context . config . InputHotkeyOverrideOptions = PRIORITY_BOTH ;
283
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . BOTH ;
288
284
289
285
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
290
286
manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -303,7 +299,7 @@ public void HotkeyPriority()
303
299
Context context = MakeContext ( ) ;
304
300
InputManager manager = context . manager ;
305
301
FakeInputSource source = context . source ;
306
- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
302
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
307
303
308
304
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
309
305
manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -322,7 +318,7 @@ public void ControllerPriority()
322
318
Context context = MakeContext ( ) ;
323
319
InputManager manager = context . manager ;
324
320
FakeInputSource source = context . source ;
325
- context . config . InputHotkeyOverrideOptions = PRIORITY_INPUT ;
321
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . INPUT ;
326
322
327
323
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
328
324
manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -340,7 +336,7 @@ public void HotkeyPriorityWithModifier()
340
336
Context context = MakeContext ( ) ;
341
337
InputManager manager = context . manager ;
342
338
FakeInputSource source = context . source ;
343
- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
339
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
344
340
345
341
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Shift+Z" ) ;
346
342
manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
@@ -360,7 +356,7 @@ public void ControllerPriorityWithModifier()
360
356
Context context = MakeContext ( ) ;
361
357
InputManager manager = context . manager ;
362
358
FakeInputSource source = context . source ;
363
- context . config . InputHotkeyOverrideOptions = PRIORITY_INPUT ;
359
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . INPUT ;
364
360
365
361
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Shift+Z" ) ;
366
362
manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
@@ -379,7 +375,7 @@ public void HotkeyOverrideDoesNotEatReleaseEvents()
379
375
Context context = MakeContext ( ) ;
380
376
InputManager manager = context . manager ;
381
377
FakeInputSource source = context . source ;
382
- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
378
+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
383
379
384
380
manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
385
381
manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
0 commit comments