wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src key.cpp tools/key_test.cpp


From: Yann Dirson
Subject: [Wesnoth-cvs-commits] wesnoth/src key.cpp tools/key_test.cpp
Date: Wed, 09 Mar 2005 12:07:43 -0500

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <address@hidden>    05/03/09 17:07:43

Modified files:
        src            : key.cpp 
Added files:
        src/tools      : key_test.cpp 

Log message:
        moved key-tester utility out of main code

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/key.cpp.diff?tr1=1.14&tr2=1.15&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/tools/key_test.cpp?rev=1.1

Patches:
Index: wesnoth/src/key.cpp
diff -u wesnoth/src/key.cpp:1.14 wesnoth/src/key.cpp:1.15
--- wesnoth/src/key.cpp:1.14    Thu Nov 18 22:00:12 2004
+++ wesnoth/src/key.cpp Wed Mar  9 17:07:43 2005
@@ -1,4 +1,4 @@
-/* $Id: key.cpp,v 1.14 2004/11/18 22:00:12 ydirson Exp $ */
+/* $Id: key.cpp,v 1.15 2005/03/09 17:07:43 ydirson Exp $ */
 /*
    Copyright (C) 2003 by David White <address@hidden>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -12,31 +12,8 @@
 */
 
 #include "global.hpp"
-
 #include "key.hpp"
 
-#define KEY_TEST 0
-
-#if (KEY_TEST == 1)
-
-#include "video.hpp"
-
-int main( void )
-{
-       SDL_Init(SDL_INIT_VIDEO);
-       CVideo video( 640, 480, 16, 0 );
-       CKey key;
-       printf( "press enter (escape exits)...\n" );
-       for(;;) {
-               if( key[KEY_RETURN] != 0 )
-                       printf( "key(ENTER) pressed\n" );
-               if( key[SDLK_ESCAPE] != 0 )
-                       return 1;
-       }
-}
-
-#endif
-
 CKey::CKey() : is_enabled(true)
 {
        static int num_keys = 300;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]