diff pytouhou/lib/sdl.pyx @ 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 2dfa4aa135d2
children aca9551ee8b4
line wrap: on
line diff
--- a/pytouhou/lib/sdl.pyx
+++ b/pytouhou/lib/sdl.pyx
@@ -33,6 +33,7 @@ WINDOW_RESIZABLE = SDL_WINDOW_RESIZABLE
 
 SCANCODE_Z = SDL_SCANCODE_Z
 SCANCODE_X = SDL_SCANCODE_X
+SCANCODE_P = SDL_SCANCODE_P
 SCANCODE_LSHIFT = SDL_SCANCODE_LSHIFT
 SCANCODE_UP = SDL_SCANCODE_UP
 SCANCODE_DOWN = SDL_SCANCODE_DOWN
@@ -40,6 +41,7 @@ SCANCODE_LEFT = SDL_SCANCODE_LEFT
 SCANCODE_RIGHT = SDL_SCANCODE_RIGHT
 SCANCODE_LCTRL = SDL_SCANCODE_LCTRL
 SCANCODE_ESCAPE = SDL_SCANCODE_ESCAPE
+SCANCODE_HOME = SDL_SCANCODE_HOME
 
 WINDOWEVENT_RESIZED = SDL_WINDOWEVENT_RESIZED