Changeset 315 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jan 25, 2007 4:30:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxSDL/VBoxSDL.cpp
r255 r315 165 165 static BOOL gfGuestCapsLockPressed = FALSE; 166 166 static BOOL gfGuestScrollLockPressed = FALSE; 167 static int g uGuestNumLockAdaptionCnt= 2;168 static int g uGuestCapsLockAdaptionCnt= 2;167 static int gcGuestNumLockAdaptions = 2; 168 static int gcGuestCapsLockAdaptions = 2; 169 169 170 170 /** modifier keypress status (scancode as index) */ … … 467 467 /* Don't bother the guest with NumLock scancodes if he doesn't set the NumLock LED */ 468 468 if (gfGuestNumLockPressed != fNumLock) 469 g uGuestNumLockAdaptionCnt= 2;469 gcGuestNumLockAdaptions = 2; 470 470 if (gfGuestCapsLockPressed != fCapsLock) 471 g uGuestCapsLockAdaptionCnt= 2;471 gcGuestCapsLockAdaptions = 2; 472 472 gfGuestNumLockPressed = fNumLock; 473 473 gfGuestCapsLockPressed = fCapsLock; … … 2807 2807 * NumLock LED well. 2808 2808 */ 2809 if ( g uGuestNumLockAdaptionCnt2809 if ( gcGuestNumLockAdaptions 2810 2810 && (gfGuestNumLockPressed ^ !!(SDL_GetModState() & KMOD_NUM))) 2811 2811 { 2812 g uGuestNumLockAdaptionCnt--;2812 gcGuestNumLockAdaptions--; 2813 2813 gKeyboard->PutScancode(0x45); 2814 2814 gKeyboard->PutScancode(0x45 | 0x80); 2815 2815 } 2816 2816 #if 0 /* For some reason SDL_GetModState() does not return KMOD_CAPS correctly */ 2817 if ( g uGuestCapsLockAdaptionCnt2817 if ( gcGuestCapsLockAdaptions 2818 2818 && (gfGuestCapsLockPressed ^ !!(SDL_GetModState() & KMOD_CAPS))) 2819 2819 { 2820 g uGuestCapsLockAdaptionCnt--;2820 gcGuestCapsLockAdaptions--; 2821 2821 gKeyboard->PutScancode(0x3a); 2822 2822 gKeyboard->PutScancode(0x3a | 0x80);
Note:
See TracChangeset
for help on using the changeset viewer.