]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_video.c
You can now set a different default base directory at compile time, by defining DP_FS...
[xonotic/darkplaces.git] / cl_video.c
index bc226e46e8bcfb2b48861f482ee2cca82fab518a..8ea468b3475ed546b02eb6ac8a8307bd4770b776 100644 (file)
@@ -276,6 +276,16 @@ void CL_VideoStart(char *filename)
        CL_RestartVideo( cl_videos );
 }
 
+void CL_Video_KeyEvent( int key, int ascii, qboolean down ) 
+{
+       // only react to up events, to allow the user to delay the abortion point if it suddenly becomes interesting..
+       if( !down ) {
+               if( key == K_ESCAPE || key == K_ENTER || key == K_SPACE ) {
+                       CL_VideoStop();
+               }
+       }
+}
+
 void CL_VideoStop(void)
 {
        cl_videoplaying = false;