simpleguics2pygame — keys

simpleguics2pygame/keys (May 29, 2015)

Keys helpers.

Piece of SimpleGUICS2Pygame. https://bitbucket.org/OPiMedia/simpleguics2pygame

GPLv3 — Copyright (C) 2015 Olivier Pirson http://www.opimedia.be/

SimpleGUICS2Pygame.simpleguics2pygame.keys.KEY_MAP = {'6': 54, 'R': 82, 'd': 68, 'I': 73, 'O': 79, 'i': 73, 'r': 82, 'E': 69, '5': 53, 'e': 69, 'L': 76, 'T': 84, 'A': 65, 'h': 72, 'P': 80, '3': 51, 'p': 80, 'Q': 81, 'u': 85, 'X': 88, 'K': 75, 'M': 77, 'U': 85, 'm': 77, 'G': 71, 'W': 87, 'B': 66, 'n': 78, 'D': 68, 'Y': 89, 'right': 39, 'C': 67, 'S': 83, 'z': 90, 'F': 70, '2': 50, 'w': 87, 't': 84, 'l': 76, 'H': 72, '1': 49, 'up': 38, 'c': 67, 'a': 65, 'b': 66, 's': 83, 'g': 71, 'v': 86, 'k': 75, 'J': 74, 'N': 78, 'x': 88, 'down': 40, '7': 55, 'Z': 90, '9': 57, '0': 48, 'q': 81, '4': 52, 'y': 89, 'left': 37, 'V': 86, 'o': 79, 'j': 74, 'space': 32, '8': 56, 'f': 70}

SimpleGUI keyboard characters contants.

SimpleGUICS2Pygame.simpleguics2pygame.keys.__all__ = ['KEY_MAP']

list() -> new empty list list(iterable) -> new list initialized from iterable’s items

[source]