The Desktop class helps manage interaction with the desktop, providing both a windowed representation of the DMD, as well as translating keyboard input into pyprocgame events.
Maps the given key to switch_number, where key is one of the key constants in pygame.locals.
Empties the key map.
Event type sent when Ctrl-C is received.
Asks pygame for recent keyboard events and translates them into an array of events similar to what would be returned by pinproc.PinPROC.get_events().
pygame.Surface object representing the screen’s surface.