Changeset 2609 for code/branches/buildsystem2/src
- Timestamp:
- Jan 29, 2009, 8:55:41 PM (16 years ago)
- Location:
- code/branches/buildsystem2/src/ois
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem2/src/ois/OISException.cpp
r1505 r2609 26 26 27 27 //----------------------------------------------------------------------------// 28 /*const char* Exception::what() const throw()28 const char* Exception::what() const throw() 29 29 { 30 30 return eText; 31 31 } 32 */ 32 -
code/branches/buildsystem2/src/ois/OISException.h
r1505 r2609 58 58 : eType(err), eLine(line), eFile(file), eText(str) {} 59 59 60 virtual const char* what() const throw() 61 { return eText; } 60 ~Exception() throw() {} 61 62 virtual const char* what() const throw(); 62 63 63 64 //! The type of exception raised -
code/branches/buildsystem2/src/ois/linux/LinuxKeyboard.cpp
r1786 r2609 283 283 } 284 284 285 for( unsignedint i = 1; i < len; i++)285 for(int i = 1; i < len; i++) 286 286 val = (val << 6) | (buf[i] & 0x3F); 287 287 … … 303 303 304 304 while( XPending(display) > 0 ) 305 { 306 XNextEvent(display, &event); 307 308 if( KeyPress == event.type ) 305 { XNextEvent(display, &event); if( KeyPress == event.type ) 309 306 { 310 307 unsigned int character = 0; … … 335 332 if( event.xkey.state & Mod1Mask && key == XK_Tab ) 336 333 linMan->_setGrabState(false); 337 } 338 else if( KeyRelease == event.type ) 334 } else if( KeyRelease == event.type ) 339 335 { 340 336 //Mask out the modifier states X sets.. or we will get improper values … … 344 340 //Else, it is a valid key release 345 341 XLookupString(&event.xkey,NULL,0,&key,NULL); 346 _injectKeyUp(key); 347 } 342 _injectKeyUp(key); } 348 343 } 349 344
Note: See TracChangeset
for help on using the changeset viewer.