diff 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
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pxd
+++ b/pytouhou/lib/sdl.pxd
@@ -33,6 +33,7 @@ cdef SDL_WindowFlags WINDOW_RESIZABLE
 #TODO: should be SDL_Scancode, but Cython doesn’t allow enum for array indexing.
 cdef long SCANCODE_Z
 cdef long SCANCODE_X
+cdef long SCANCODE_P
 cdef long SCANCODE_LSHIFT
 cdef long SCANCODE_UP
 cdef long SCANCODE_DOWN
@@ -40,6 +41,7 @@ cdef long SCANCODE_LEFT
 cdef long SCANCODE_RIGHT
 cdef long SCANCODE_LCTRL
 cdef long SCANCODE_ESCAPE
+cdef long SCANCODE_HOME
 
 cdef SDL_WindowEventID WINDOWEVENT_RESIZED