win32.c
changeset 1582 5ac8f9425c09
parent 1580 0064c283b59b
child 1596 c1c439a2d5b2
equal deleted inserted replaced
1581:ccb9a6545117 1582:5ac8f9425c09
   297 	}
   297 	}
   298 
   298 
   299 	case WM_KEYDOWN: {
   299 	case WM_KEYDOWN: {
   300 		// this is the rewritten ascii input function
   300 		// this is the rewritten ascii input function
   301 		// it disables windows deadkey handling --> more linux like :D
   301 		// it disables windows deadkey handling --> more linux like :D
   302     unsigned short w = 0;
   302 		unsigned short w = 0;
   303 		int r = 0;
   303 		int r = 0;
   304 		byte ks[256];
   304 		byte ks[256];
   305 		unsigned int scan = 0;
   305 		unsigned int scan = 0;
   306 		uint16 scancode = (( lParam & 0xFF0000 ) >> 16 );
   306 		uint16 scancode = (( lParam & 0xFF0000 ) >> 16 );
   307 
   307 
   719 		if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) {
   719 		if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) {
   720 			/* Disable speeding up game with ALT+TAB (if syskey is pressed, the
   720 			/* Disable speeding up game with ALT+TAB (if syskey is pressed, the
   721 			 * real key is in the upper 16 bits (see WM_SYSKEYDOWN in WndProcGdi()) */
   721 			 * real key is in the upper 16 bits (see WM_SYSKEYDOWN in WndProcGdi()) */
   722 			if ((_pressed_key >> 16) & WKC_TAB &&
   722 			if ((_pressed_key >> 16) & WKC_TAB &&
   723 #endif
   723 #endif
   724 			  !_networking && _game_mode != GM_MENU)
   724 			    !_networking && _game_mode != GM_MENU)
   725 				_fast_forward |= 2;
   725 				_fast_forward |= 2;
   726 		} else if (_fast_forward & 2)
   726 		} else if (_fast_forward & 2)
   727 			_fast_forward = 0;
   727 			_fast_forward = 0;
   728 
   728 
   729 		cur_ticks = GetTickCount();
   729 		cur_ticks = GetTickCount();