paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.9,1.2.4.10 p


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/core pgapplication.cpp,1.2.4.9,1.2.4.10 pglog.cpp,1.1.6.3,1.1.6.4
Date: Thu, 11 Jul 2002 04:25:59 -0400

Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv31203/src/core

Modified Files:
      Tag: devel-1-0
        pgapplication.cpp pglog.cpp 
Log Message:
added GetConsoleKey() / SetConsoleKey to the PG_LogConsole namespace



Index: pgapplication.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgapplication.cpp,v
retrieving revision 1.2.4.9
retrieving revision 1.2.4.10
diff -C2 -r1.2.4.9 -r1.2.4.10
*** pgapplication.cpp   4 Jul 2002 09:48:14 -0000       1.2.4.9
--- pgapplication.cpp   11 Jul 2002 08:25:57 -0000      1.2.4.10
***************
*** 256,261 ****
  /**  */
  bool PG_Application::eventKeyDown(const SDL_KeyboardEvent* key) {
! 
!       if (key->keysym.sym == PG_LOGCONSOLE_KEY) {
                PG_LogConsole::Update();
                PG_LogConsole::Toggle();
--- 256,266 ----
  /**  */
  bool PG_Application::eventKeyDown(const SDL_KeyboardEvent* key) {
!       SDLKey ckey = PG_LogConsole::GetConsoleKey();
!       
!       if(ckey == 0) {
!               return false;
!       }
!       
!       if (key->keysym.sym == ckey) {
                PG_LogConsole::Update();
                PG_LogConsole::Toggle();

Index: pglog.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pglog.cpp,v
retrieving revision 1.1.6.3
retrieving revision 1.1.6.4
diff -C2 -r1.1.6.3 -r1.1.6.4
*** pglog.cpp   18 Jun 2002 08:10:23 -0000      1.1.6.3
--- pglog.cpp   11 Jul 2002 08:25:57 -0000      1.1.6.4
***************
*** 42,45 ****
--- 42,46 ----
  int PG_LogMethod = PG_LOGMTH_STDOUT;
  static PG_LOG_LEVEL PG_LogLevel = PG_LOG_DBG;
+ static SDLKey PG_LogConsoleKey = SDLK_F12;
  
  struct PG_LogMessage_t {
***************
*** 244,247 ****
--- 245,256 ----
  int PG_LogConsole::GetMethod() {
        return PG_LogMethod;
+ }
+ 
+ void PG_LogConsole::SetConsoleKey(SDLKey key) {
+       PG_LogConsoleKey = key;
+ }
+ 
+ SDLKey PG_LogConsole::GetConsoleKey() {
+       return PG_LogConsoleKey;
  }
  




reply via email to

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