(self, values)
Initialise joysticks.
Initialise joysticks.
Initialise joysticks .
def __init__(self, values):
        """Initialise joysticks."""
        self._values = values
        self.is_firing = [[False, False], [False, False]]
        # axis 0--255; 128 is mid but reports 0, not 128 if no joysticks present
        self.axis = [[0, 0], [0, 0]]
        self.is_on = False
        self._was_fired = [[False, False], [False, False]]
        # timer for reading game port
        self._out_time = self._decay_timer()
def __init__ ( self , values ) : self . _values = values self . is_firing = [ [ False , False ] , [ False , False ] ] # axis 0--255; 128 is mid but reports 0, not 128 if no joysticks present self . axis = [ [ 0 , 0 ] , [ 0 , 0 ] ] self . is_on = False self . _was_fired = [ [ False , False ] , [ False , False ] ] # timer for reading game port self . _out_time = self . _decay_timer ( )