From 46885d250e3bbaaf838d88102cac94b2bb11112b Mon Sep 17 00:00:00 2001 From: "chirs241097@gmail.com" Date: Mon, 7 Apr 2014 13:28:49 +0000 Subject: Now you can change the game resolution. Some resources are not re-made so they may look blurred... Make font bigger for higher resolution. Add command line option for changing the resolution. Complete the option menu rewrite. --- hge/input.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hge') diff --git a/hge/input.cpp b/hge/input.cpp index 4cd2c97..2710c7f 100644 --- a/hge/input.cpp +++ b/hge/input.cpp @@ -206,8 +206,8 @@ int CALL HGE_Impl::Input_GetKeyStateEx(int key)//New function { if (!Input_GetKeyState(key)&&keylast[key])return HGEKST_RELEASE; if (!Input_GetKeyState(key))return HGEKST_NONE; - if (keylast[key])return HGEKST_KEEP; - return HGEKST_HIT; + if (Input_GetKeyState(key)&&!keylast[key])return HGEKST_HIT; + return HGEKST_KEEP; } bool CALL HGE_Impl::Input_KeyDown(int key) -- cgit v1.2.3