- Timestamp:
- Jan 29, 2009, 8:55:41 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.