Changeset - r4508:bfa94b3dd5f4
[Not reviewed]
master
0 1 0
tron - 18 years ago 2006-09-01 10:37:27
tron@openttd.org
(svn r6293) -Codechange: Simply use KMOD_CTRL instead of KMOD_LCTRL | KMOD_RCTRL, same for KMOD_SHIFT
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
video/sdl_v.c
Show inline comments
 
@@ -329,13 +329,13 @@ static int PollEvent(void)
 
				_cursor.pos.y = ev.motion.y;
 
				_cursor.dirty = true;
 
			}
 
			break;
 

	
 
		case SDL_MOUSEBUTTONDOWN:
 
			if (_rightclick_emulate && (SDL_CALL SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL))) {
 
			if (_rightclick_emulate && SDL_CALL SDL_GetModState() & KMOD_CTRL) {
 
				ev.button.button = SDL_BUTTON_RIGHT;
 
			}
 

	
 
			switch (ev.button.button) {
 
				case SDL_BUTTON_LEFT:
 
					_left_button_down = true;
 
@@ -470,14 +470,14 @@ static void SdlVideoMainLoop(void)
 
		if ((_fast_forward && !_pause) || cur_ticks > next_tick)
 
			next_tick = cur_ticks;
 

	
 
		if (cur_ticks == next_tick) {
 
			next_tick += 30;
 

	
 
			_ctrl_pressed = !!(mod & (KMOD_LCTRL | KMOD_RCTRL));
 
			_shift_pressed = !!(mod & (KMOD_LSHIFT | KMOD_RSHIFT));
 
			_ctrl_pressed  = !!(mod & KMOD_CTRL);
 
			_shift_pressed = !!(mod & KMOD_SHIFT);
 
#ifdef _DEBUG
 
			_dbg_screen_rect = !!(mod & KMOD_CAPS);
 
#endif
 

	
 
			// determine which directional keys are down
 
			_dirkeys =
0 comments (0 inline, 0 general)