Changeset 1238
- Timestamp:
- May 6, 2008, 3:30:26 PM (17 years ago)
- Location:
- code/branches/input/src/core
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/core/CorePrereqs.h
r1219 r1238 144 144 145 145 // input 146 //class GUIInputHandler; 146 147 class InputBuffer; 147 148 class InputBufferListener; 148 149 class InputManager; 150 class JoyStickHandler; 151 class JoyStickState; 149 152 class KeyBinder; 150 class GUIInputHandler;153 class KeyEvent; 151 154 class KeyHandler; 152 155 class MouseHandler; 153 class JoyStickHandler;156 class MouseState; 154 157 155 158 } -
code/branches/input/src/core/InputInterfaces.h
r1237 r1238 219 219 } 220 220 221 class _CoreExport KeyboardState222 {223 public:224 };225 226 221 struct _CoreExport Key 227 222 { -
code/branches/input/src/core/SignalHandler.cc
r1062 r1238 35 35 36 36 #include <assert.h> 37 #include <iostream> 37 38 38 39 #include "Debug.h" … … 58 59 this->fileName = fileName; 59 60 61 // prepare for restoring XAutoKeyRepeat 62 if (display_ = XOpenDisplay(0)) 63 { 64 XGetKeyboardControl( display_, &bXAutoKeyRepeatOn_ ); 65 XCloseDisplay(display_); 66 } 67 else 68 { 69 std::cout << "Warning: couldn't open X display to restore XAutoKeyRepeat." << std::endl; 70 XAutoKeyRepeatOn_ = false; 71 } 72 73 60 74 // make sure doCatch is only called once without calling dontCatch 61 75 assert( sigRecList.size() == 0 ); … … 120 134 sigName = "SIGILL"; 121 135 break; 136 } 137 138 if (XAutoKeyRepeatOn_) 139 { 140 std::cout << "Trying to restore XAutoKeyRepeat" << std::endl; 141 if (display_ = XOpenDisplay(0)) 142 { 143 XAutoRepeatOn(display_); 144 XCloseDisplay(display_); 145 } 122 146 } 123 147 -
code/branches/input/src/core/SignalHandler.h
r1062 r1238 44 44 #ifndef __WIN32__ 45 45 #include <signal.h> 46 #include <X11/Xlib.h> 46 47 47 48 struct SignalRec … … 86 87 std::string appName; 87 88 std::string fileName; 89 90 // X Display, used to turn on KeyAutoRepeat if OIS crashes 91 Display *display_; 92 bool bXAutoKeyRepeatOn_; 88 93 }; 89 94
Note: See TracChangeset
for help on using the changeset viewer.