From: <wo...@us...> - 2003-10-22 20:38:01
|
Update of /cvsroot/once/oncecode/src/client In directory sc8-pr-cvs1:/tmp/cvs-serv26014/src/client Modified Files: occlient.cpp Log Message: Fixed for the keyboard handling errors. This should fix the compiler errors that were experienced this week. (Perhaps anonymous cvs will catch up only after 24 hours). Index: occlient.cpp =================================================================== RCS file: /cvsroot/once/oncecode/src/client/occlient.cpp,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** occlient.cpp 5 Oct 2003 12:23:21 -0000 1.13 --- occlient.cpp 22 Oct 2003 20:34:51 -0000 1.14 *************** *** 23,26 **** --- 23,27 ---- #include "cstool/initapp.h" #include "csutil/cmdhelp.h" + #include "csutil/event.h" #include "ivaria/reporter.h" #include "iutil/vfs.h" *************** *** 358,369 **** bool ocClient::HandleEvent(iEvent &event) { ! if(event.Type==csevKeyDown && event.Key.Code == CSKEY_ESC) { csRef<iEventQueue> q (CS_QUERY_REGISTRY (object_reg, iEventQueue)); if (q) ! q->GetEventOutlet()->Broadcast (cscmdQuit); return true; } ! if(AwsHasKeyboard() && (event.Type==csevKeyDown || event.Type==csevKeyUp)) { if(aws->HandleEvent(event)) return true; --- 359,372 ---- bool ocClient::HandleEvent(iEvent &event) { ! if(event.Type==csevKeyboard ! && csKeyEventHelper::GetEventType(&event) == csKeyEventTypeDown ! && csKeyEventHelper::GetCookedCode(&event) == CSKEY_ESC) { csRef<iEventQueue> q (CS_QUERY_REGISTRY (object_reg, iEventQueue)); if (q) ! q->GetEventOutlet()->Broadcast (cscmdQuit); return true; } ! if(AwsHasKeyboard() && event.Type == csevKeyboard) { if(aws->HandleEvent(event)) return true; |