Changeset - r26809:d4ad4016fc34
[Not reviewed]
master
0 5 0
Henry Wilson - 19 months ago 2022-11-16 22:28:22
henry@henryandlizzy.uk
Codechange: Remove shift as fast-forward key when _DEBUG is defined
5 files changed with 0 insertions and 20 deletions:
0 comments (0 inline, 0 general)
src/video/allegro_v.cpp
Show inline comments
 
@@ -467,13 +467,9 @@ void VideoDriver_Allegro::InputLoop()
 
	_ctrl_pressed  = !!(key_shifts & KB_CTRL_FLAG);
 
	_shift_pressed = !!(key_shifts & KB_SHIFT_FLAG);
 

	
 
#if defined(_DEBUG)
 
	this->fast_forward_key_pressed = _shift_pressed;
 
#else
 
	/* Speedup when pressing tab, except when using ALT+TAB
 
	 * to switch to another application. */
 
	this->fast_forward_key_pressed = key[KEY_TAB] && (key_shifts & KB_ALT_FLAG) == 0;
 
#endif
 

	
 
	/* Determine which directional keys are down. */
 
	_dirkeys =
src/video/cocoa/cocoa_v.mm
Show inline comments
 
@@ -484,11 +484,7 @@ void VideoDriver_Cocoa::InputLoop()
 
	_ctrl_pressed = (cur_mods & ( _settings_client.gui.right_mouse_btn_emulation != RMBE_CONTROL ? NSEventModifierFlagControl : NSEventModifierFlagCommand)) != 0;
 
	_shift_pressed = (cur_mods & NSEventModifierFlagShift) != 0;
 

	
 
#if defined(_DEBUG)
 
	this->fast_forward_key_pressed = _shift_pressed;
 
#else
 
	this->fast_forward_key_pressed = _tab_is_down;
 
#endif
 

	
 
	if (old_ctrl_pressed != _ctrl_pressed) HandleCtrlChanged();
 
}
src/video/sdl2_v.cpp
Show inline comments
 
@@ -577,13 +577,9 @@ void VideoDriver_SDL_Base::InputLoop()
 
	_ctrl_pressed  = !!(mod & KMOD_CTRL);
 
	_shift_pressed = !!(mod & KMOD_SHIFT);
 

	
 
#if defined(_DEBUG)
 
	this->fast_forward_key_pressed = _shift_pressed;
 
#else
 
	/* Speedup when pressing tab, except when using ALT+TAB
 
	 * to switch to another application. */
 
	this->fast_forward_key_pressed = keys[SDL_SCANCODE_TAB] && (mod & KMOD_ALT) == 0;
 
#endif /* defined(_DEBUG) */
 

	
 
	/* Determine which directional keys are down. */
 
	_dirkeys =
src/video/sdl_v.cpp
Show inline comments
 
@@ -624,13 +624,9 @@ void VideoDriver_SDL::InputLoop()
 
	_ctrl_pressed  = !!(mod & KMOD_CTRL);
 
	_shift_pressed = !!(mod & KMOD_SHIFT);
 

	
 
#if defined(_DEBUG)
 
	this->fast_forward_key_pressed = _shift_pressed;
 
#else
 
	/* Speedup when pressing tab, except when using ALT+TAB
 
	 * to switch to another application. */
 
	this->fast_forward_key_pressed = keys[SDLK_TAB] && (mod & KMOD_ALT) == 0;
 
#endif /* defined(_DEBUG) */
 

	
 
	/* Determine which directional keys are down. */
 
	_dirkeys =
src/video/win32_v.cpp
Show inline comments
 
@@ -844,13 +844,9 @@ void VideoDriver_Win32Base::InputLoop()
 
	_ctrl_pressed = this->has_focus && GetAsyncKeyState(VK_CONTROL) < 0;
 
	_shift_pressed = this->has_focus && GetAsyncKeyState(VK_SHIFT) < 0;
 

	
 
#if defined(_DEBUG)
 
	this->fast_forward_key_pressed = _shift_pressed;
 
#else
 
	/* Speedup when pressing tab, except when using ALT+TAB
 
	 * to switch to another application. */
 
	this->fast_forward_key_pressed = this->has_focus && GetAsyncKeyState(VK_TAB) < 0 && GetAsyncKeyState(VK_MENU) >= 0;
 
#endif
 

	
 
	/* Determine which directional keys are down. */
 
	if (this->has_focus) {
0 comments (0 inline, 0 general)