comparison pytouhou/lib/sdl.pxd @ 592:19d930f9e3f0

Add the screenshot feature, using P or Home like the original game.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Wed, 23 Apr 2014 19:19:32 +0200
parents e15672733c93
children 9dbc234ea087
comparison
equal deleted inserted replaced
591:2dfa4aa135d2 592:19d930f9e3f0
31 cdef SDL_WindowFlags WINDOW_RESIZABLE 31 cdef SDL_WindowFlags WINDOW_RESIZABLE
32 32
33 #TODO: should be SDL_Scancode, but Cython doesn’t allow enum for array indexing. 33 #TODO: should be SDL_Scancode, but Cython doesn’t allow enum for array indexing.
34 cdef long SCANCODE_Z 34 cdef long SCANCODE_Z
35 cdef long SCANCODE_X 35 cdef long SCANCODE_X
36 cdef long SCANCODE_P
36 cdef long SCANCODE_LSHIFT 37 cdef long SCANCODE_LSHIFT
37 cdef long SCANCODE_UP 38 cdef long SCANCODE_UP
38 cdef long SCANCODE_DOWN 39 cdef long SCANCODE_DOWN
39 cdef long SCANCODE_LEFT 40 cdef long SCANCODE_LEFT
40 cdef long SCANCODE_RIGHT 41 cdef long SCANCODE_RIGHT
41 cdef long SCANCODE_LCTRL 42 cdef long SCANCODE_LCTRL
42 cdef long SCANCODE_ESCAPE 43 cdef long SCANCODE_ESCAPE
44 cdef long SCANCODE_HOME
43 45
44 cdef SDL_WindowEventID WINDOWEVENT_RESIZED 46 cdef SDL_WindowEventID WINDOWEVENT_RESIZED
45 47
46 cdef SDL_EventType KEYDOWN 48 cdef SDL_EventType KEYDOWN
47 cdef SDL_EventType QUIT 49 cdef SDL_EventType QUIT