(self, event_check_input)
Handle input events.
Handle input events.
Handle input events .
def _check_input(self, event_check_input):
        """Handle input events."""
        while True:
            # pop input queues
            try:
                signal = self.inputs.get(False)
            except queue.Empty:
                if self._pause:
                    continue
                else:
                    # we still need to handle basic events: not all are inputs
                    for e in event_check_input:
                        e.check_input(signals.Event(None))
                    break
            self.inputs.task_done()
            # effect replacements
            self._replace_inputs(signal)
            # handle input events
            for handle_input in (
                    [self._handle_non_trappable_interrupts] +
                    [e.check_input for e in event_check_input] +
                    [self._handle_trappable_interrupts] +
                    [e.check_input for e in self._handlers]
                ):
                if handle_input(signal):
                    break
def _check_input ( self , event_check_input ) : while True : # pop input queues try : signal = self . inputs . get ( False ) except queue . Empty : if self . _pause : continue else : # we still need to handle basic events: not all are inputs for e in event_check_input : e . check_input ( signals . Event ( None ) ) break self . inputs . task_done ( ) # effect replacements self . _replace_inputs ( signal ) # handle input events for handle_input in ( [ self . _handle_non_trappable_interrupts ] + [ e . check_input for e in event_check_input ] + [ self . _handle_trappable_interrupts ] + [ e . check_input for e in self . _handlers ] ) : if handle_input ( signal ) : break