mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-12-06 04:55:44 +00:00
test(input): cover the SDL 3 virtual-pad query path
This commit is contained in:
1 parent
72c8b8426d
commit
e409b181c3
1 file changed
+6
-1
@@ -670,7 +670,12 @@ class InputUdevPreloadTest(unittest.TestCase):
|
||||
])
|
||||
|
||||
def test_no_device_call_on_a_pad_reaches_the_real_libudev(self):
|
||||
self.assertEqual(self.run_program("every", args=DEVICE_FUNCTIONS), ["pad 1 real calls 0"])
|
||||
for extra in ({}, {"SDL_JOYSTICK_DISABLE_UDEV": "1", "SDL_JOYSTICK_HIDAPI": "0"},
|
||||
{"SDL_JOYSTICK_DISABLE_UDEV": "1", "SDL_JOYSTICK_HIDAPI": "0",
|
||||
"FAKE_EVDEV_STEAM_VIRTUAL": "1"}):
|
||||
with self.subTest(**extra):
|
||||
self.assertEqual(self.run_program("every", args=DEVICE_FUNCTIONS, extra=extra),
|
||||
["pad 1 real calls 0"])
|
||||
|
||||
def test_a_handle_keeps_its_strings_after_the_pad_goes_away(self):
|
||||
self.assertEqual(self.run_program("stable", pads=self.pad_dir("stable", "event0")), [
|
||||
|
||||
Reference in new issue
Block a user