From 8b56e7544ec50c9734f9b9616c4aefd6bee932d1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 17 Feb 2008 17:00:43 +0000 Subject: (svn r12167) -Feature(tte): change colour of autorail and autoroad selection when Ctrl is pressed --- src/video/cocoa/event.mm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/video/cocoa') diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm index 9302f13c8..3e8fc68c1 100644 --- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -668,9 +668,13 @@ void QZ_GameLoop() last_cur_ticks = cur_ticks; next_tick = cur_ticks + 30; + bool old_ctrl_pressed = _ctrl_pressed; + _ctrl_pressed = !!(_current_mods & ( _patches.right_mouse_btn_emulation != RMBE_CONTROL ? NSControlKeyMask : NSCommandKeyMask)); _shift_pressed = !!(_current_mods & NSShiftKeyMask); + if (old_ctrl_pressed != _ctrl_pressed) HandleCtrlChanged(); + GameLoop(); _screen.dst_ptr = _cocoa_subdriver->GetPixelBuffer(); -- cgit v1.2.3-70-g09d2