DEADSOFTWARE

Window: Update keyboard state before execute
authorStas'M <x86corez@gmail.com>
Sat, 19 May 2018 20:07:46 +0000 (23:07 +0300)
committerStas'M <x86corez@gmail.com>
Sat, 19 May 2018 20:07:59 +0000 (23:07 +0300)
src/game/g_window.pas

index 3a29d0803081a585868b03fdd87b0bd01b7e8748..ac21148efe9c6f1b24acdb0df77cca1cba3b4fee 100644 (file)
@@ -483,8 +483,8 @@ begin
           exit;
         end;
         {$ENDIF}
-        if down then KeyPress(key);
         e_KeyUpDown(key, down);
+        if down then KeyPress(key);
       end;
 
     {$IF not DEFINED(HEADLESS)}