code: def __get_axis_events(self, state, timeval=None):
          
          axis_changes = self.__detect_axis_events(state)
          events = self.__emulate_axis(axis_changes, timeval)
          return events
docs: Get the stick events from xinput.