equal
deleted
inserted
replaced
712 _ctrl_pressed = _wnd.has_focus && GetAsyncKeyState(VK_CONTROL)<0; |
712 _ctrl_pressed = _wnd.has_focus && GetAsyncKeyState(VK_CONTROL)<0; |
713 _shift_pressed = _wnd.has_focus && GetAsyncKeyState(VK_SHIFT)<0; |
713 _shift_pressed = _wnd.has_focus && GetAsyncKeyState(VK_SHIFT)<0; |
714 _dbg_screen_rect = _wnd.has_focus && GetAsyncKeyState(VK_CAPITAL)<0; |
714 _dbg_screen_rect = _wnd.has_focus && GetAsyncKeyState(VK_CAPITAL)<0; |
715 |
715 |
716 // determine which directional keys are down |
716 // determine which directional keys are down |
717 _dirkeys = |
717 if (_wnd.has_focus) { |
718 (GetAsyncKeyState(VK_LEFT) < 0 ? 1 : 0) + |
718 _dirkeys = |
719 (GetAsyncKeyState(VK_UP) < 0 ? 2 : 0) + |
719 (GetAsyncKeyState(VK_LEFT) < 0 ? 1 : 0) + |
720 (GetAsyncKeyState(VK_RIGHT) < 0 ? 4 : 0) + |
720 (GetAsyncKeyState(VK_UP) < 0 ? 2 : 0) + |
721 (GetAsyncKeyState(VK_DOWN) < 0 ? 8 : 0); |
721 (GetAsyncKeyState(VK_RIGHT) < 0 ? 4 : 0) + |
|
722 (GetAsyncKeyState(VK_DOWN) < 0 ? 8 : 0); |
|
723 } else |
|
724 _dirkeys = 0; |
722 |
725 |
723 GameLoop(); |
726 GameLoop(); |
724 _cursor.delta.x = _cursor.delta.y = 0; |
727 _cursor.delta.x = _cursor.delta.y = 0; |
725 |
728 |
726 if (_force_full_redraw) |
729 if (_force_full_redraw) |