About Me

Welcome to the blog of Positive Mind
About Me | Learn Inredible
Motivational Tip & Tricks Tech Articles Printable Games VECTOR PRINTABLE Coreldraw Tutorial visiting card vector Wedding Cards Vector

PYGAME BASIC KEY CODES WHILE BUILDING PROJECTS

PYGAME BASIC KEY CODES WHILE BUILDING PROJECTS

pygame

If you can’t remember the basic codes you can’t give a special touch to your project with those small elements that you could do if you remember the basics keys that builds moves all your stuff in pygame.

Always remember the basic codes while building projects in Pygame.

KEYCONSTANTS               ASCII                     DETAILS

 

K_BACKSPACE                   \b                           BACKSPACE

K_TAB                                   \t                            Tab

K_CLEAR                                                              CLEAR

K_RETURN                            \r                          RETURN

K_PAUSE                                                             PAUSE

K_ESCAPE                             ^[                           ESCAPE

K_SPACE                                                              SPACE

K_EXCLAIM                           !                            EXCLAIM

K_QUOTEDBL                     "                              QUOTEDBL

K_HASH                                #                              HASH

K_DOLLAR                           $                              DOLLAR

K_AMPERSAND                &                            AMPERSAND

K_QUOTE                                                            QUOTE

K_LEFTPAREN                     (                             LEFT PARENTHESIS

K_RIGHTPAREN                 )                             RIGHT PARENTHESIS

K_ASTERISK                         *                             ASTERISK

K_PLUS                                  +                             PLUS SIGN

K_COMMA                          ,                              COMMA

K_MINUS                            -                              MINUS SIGN

K_PERIOD                             .                              PERIOD

K_SLASH                              /                              FORWARD SLASH

 

K_0                                         0                               0

K_1                                          1                             1

K_2                                          2                              2

K_3                                          3                             3

K_4                                         4                               4

K_5                                          5                             5

K_6                                          6                             6

K_7                                          7                             7

K_8                                          8                             8

K_9                                         9                              9

 

K_COLON                             :                              COLON

K_SEMICOLON                                   ;                              SEMICOLON

K_LESS                                  <                              LESS-THAN SIGN

K_EQUALS                           =                              EQUALS SIGN

K_GREATER                        >                              GREATER-THAN SIGN

K_QUESTION                     ?                              QUESTION MARK

K_AT                                      @                            AT

K_LEFTBRACKET                [                               LEFT BRACKET

K_BACKSLASH                    \                             BACKSLASH

K_RIGHTBRACKET            ]                              RIGHT BRACKET

K_CARET                              ^                              CARET

K_UNDERSCORE                _                             UNDERSCORE

K_BACKQUOTE                  `                              GRAVE

 

K_a                                          a                             a

K_b                                        b                             b

K_c                                          c                             c

K_d                                        d                             d

K_e                                         e                            e

K_f                                         f                               f

K_g                                         g                              g

K_h                                        h                             h

K_i                                           i                               i

K_j                                           j                              j

K_k                                         k                              k

K_l                                           l                              l

K_m                                        m                           m

K_n                                         n                            n

K_o                                         o                            o

K_p                                        p                             p

K_q                                         q                            q

K_r                                         r                              r

K_s                                          s                              s

K_t                                          t                             t

K_u                                        u                             u

K_v                                         v                              v

K_w                                        w                           w

K_x                                          x                             x

K_y                                         y                              y

K_z                                         z                              z

 

K_DELETE                                                             DELETE

K_KP0                                                                   KEYPAD 0

K_KP1                                                                    KEYPAD 1

K_KP2                                                                   KEYPAD 2

K_KP3                                                                   KEYPAD 3

K_KP4                                                                   KEYPAD 4

K_KP5                                                                   KEYPAD 5

K_KP6                                                                   KEYPAD 6

K_KP7                                                                   KEYPAD 7

K_KP8                                                                   KEYPAD 8

K_KP9                                                                   KEYPAD 9

K_KP_PERIOD                     .                              KEYPAD PERIOD

K_KP_DIVIDE                      /                             KEYPAD DIVIDE

K_KP_MULTIPLY               *                              KEYPAD MULTIPLY

K_KP_MINUS                     -                              KEYPAD MINUS

K_KP_PLUS                          +                             KEYPAD PLUS

K_KP_ENTER                      \r                             KEYPAD ENTER

K_KP_EQUALS                                   =                               KEYPAD EQUALS

 

K_UP                                                                      UP ARROW

K_DOWN                                                             DOWN ARROW

K_RIGHT                                                              RIGHT ARROW

K_LEFT                                                                  LEFT ARROW

 

K_INSERT                                                             INSERT

K_HOME                                                              HOME

K_END                                                  END

K_PAGEUP                                                          PAGE UP

K_PAGEDOWN                                                 PAGE DOWN

 

K_F1                                                                      F1

K_F2                                                                      F2

K_F3                                                                      F3

K_F4                                                                      F4

K_F5                                                                      F5

K_F6                                                                      F6

K_F7                                                                      F7

K_F8                                                                      F8

K_F9                                                                      F9

K_F10                                                                    F10

K_F11                                                                    F11

K_F12                                                                    F12

K_F13                                                                    F13

K_F14                                                                    F14

K_F15                                                                    F15

 

K_NUMLOCK                                                     NUMLOCK

K_CAPSLOCK                                                      CAPSLOCK

K_SCROLLOCK                                                   SCROLLOCK

K_RSHIFT                                                             RIGHT SHIFT

K_LSHIFT                                                              LEFT SHIFT

K_RCTRL                                                               RIGHT CONTROL

K_LCTRL                                                               LEFT CONTROL

K_RALT                                                 RIGHT ALT

K_LALT                                                                  LEFT ALT

K_RMETA                                                            RIGHT META

K_LMETA                                                             LEFT META

K_LSUPER                                                            LEFT WINDOWS KEY

K_RSUPER                                                           RIGHT WINDOWS KEY

K_MODE                                                              MODE SHIFT

K_HELP                                                 HELP

K_PRINT                                                               PRINT SCREEN

K_SYSREQ                                                           SYSRQ

K_BREAK                                                              BREAK

K_MENU                                                              MENU

K_POWER                                                           POWER

K_EURO                                                               EURO

 

 

 


Advertise

Your AD Here

Subscribe

Enter your e-mail below and get notified on the latest blog posts.

Popular Posts


Follow Me


SUBSCRIBE

Join my mailing list to receive updates on the latest blog posts and other things.