@@ -40,10 +40,6 @@ public void BasicInputProcessing()
4040
4141 private static readonly IReadOnlyList < string > _modifierKeys = new [ ] { "Super" , "Ctrl" , "Alt" , "Shift" } ;
4242
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-
4743 private InputEvent MakePressEvent ( string keyboardButton , uint modifiers = 0 )
4844 {
4945 return new ( )
@@ -284,7 +280,7 @@ public void SinglePressCanDoControllerAndHotkeyInput()
284280 Context context = MakeContext ( ) ;
285281 InputManager manager = context . manager ;
286282 FakeInputSource source = context . source ;
287- context . config . InputHotkeyOverrideOptions = PRIORITY_BOTH ;
283+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . BOTH ;
288284
289285 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
290286 manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -303,7 +299,7 @@ public void HotkeyPriority()
303299 Context context = MakeContext ( ) ;
304300 InputManager manager = context . manager ;
305301 FakeInputSource source = context . source ;
306- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
302+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
307303
308304 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
309305 manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -322,7 +318,7 @@ public void ControllerPriority()
322318 Context context = MakeContext ( ) ;
323319 InputManager manager = context . manager ;
324320 FakeInputSource source = context . source ;
325- context . config . InputHotkeyOverrideOptions = PRIORITY_INPUT ;
321+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . INPUT ;
326322
327323 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
328324 manager . ActiveController . BindMulti ( "A" , "Z" ) ;
@@ -340,7 +336,7 @@ public void HotkeyPriorityWithModifier()
340336 Context context = MakeContext ( ) ;
341337 InputManager manager = context . manager ;
342338 FakeInputSource source = context . source ;
343- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
339+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
344340
345341 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Shift+Z" ) ;
346342 manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
@@ -360,7 +356,7 @@ public void ControllerPriorityWithModifier()
360356 Context context = MakeContext ( ) ;
361357 InputManager manager = context . manager ;
362358 FakeInputSource source = context . source ;
363- context . config . InputHotkeyOverrideOptions = PRIORITY_INPUT ;
359+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . INPUT ;
364360
365361 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Shift+Z" ) ;
366362 manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
@@ -379,7 +375,7 @@ public void HotkeyOverrideDoesNotEatReleaseEvents()
379375 Context context = MakeContext ( ) ;
380376 InputManager manager = context . manager ;
381377 FakeInputSource source = context . source ;
382- context . config . InputHotkeyOverrideOptions = PRIORITY_HOTKEY ;
378+ context . config . InputHotkeyOverrideOptions = Config . InputPriority . HOTKEY ;
383379
384380 manager . ClientControls . BindMulti ( _hotkeys [ 0 ] , "Z" ) ;
385381 manager . ActiveController . BindMulti ( "A" , "Shift+Z" ) ;
0 commit comments