Home
last modified time | relevance | path

Searched refs:hat_switch (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/tools/testing/selftests/hid/tests/
H A Dbase_gamepad.py66 self.hat_switch = 15
85 hat_switch=None, argument
131 if hat_switch is None:
132 hat_switch = self.hat_switch
134 self.hat_switch = hat_switch
144 gamepad.hatswitch = hat_switch # type: ignore ### gamepad is by default empty
150 self, *, left=(None, None), right=(None, None), hat_switch=None, buttons=None argument
165 left=left, right=right, hat_switch=hat_switch, buttons=buttons
207 hat_switch=None, argument
231 hat_switch=hat_switch,
H A Dtest_gamepad.py192 r = uhdev.event(hat_switch=hat_value)
633 self.hat_switch = 240 # null value is 240 as max is 239
636 self, *, left=(None, None), right=(None, None), hat_switch=None, buttons=None argument
638 if hat_switch is not None:
639 hat_switch *= 30
642 left=left, right=right, hat_switch=hat_switch, buttons=buttons