(self, args)
return self._values.new_integer().from_int(result)
STICK: poll the joystick axes.
STICK: poll the joystick axes.
STICK : poll the joystick axes .
def stick_(self, args):
        """STICK: poll the joystick axes."""
        fn, = args
        fn = values.to_int(fn)
        error.range_check(0, 3, fn)
        joy, axis = fn // 2, fn % 2
        try:
            result = self.axis[joy][axis]
        except IndexError:
            # ignore any joysticks/axes beyond the 2x2 supported by BASIC
            result = 0
        return self._values.new_integer().from_int(result)
def stick_ ( self , args ) : fn , = args fn = values . to_int ( fn ) error . range_check ( 0 , 3 , fn ) joy , axis = fn // 2 , fn % 2 try : result = self . axis [ joy ] [ axis ] except IndexError : # ignore any joysticks/axes beyond the 2x2 supported by BASIC result = 0 return self . _values . new_integer ( ) . from_int ( result )