Changeset 2664 for code/branches/buildsystem3/src/ois/linux
- Timestamp:
- Feb 14, 2009, 10:53:45 PM (16 years ago)
- Location:
- code/branches/buildsystem3
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/buildsystem3
- Property svn:ignore deleted
- Property svn:mergeinfo changed
-
code/branches/buildsystem3/src/ois/linux/LinuxKeyboard.cpp
r1786 r2664 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.