aboutsummaryrefslogtreecommitdiff
path: root/hge
diff options
context:
space:
mode:
authorGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-07 13:28:49 +0000
committerGravatar chirs241097@gmail.com <chirs241097@gmail.com@c17bf020-1265-9734-9302-a83f62007ddb> 2014-04-07 13:28:49 +0000
commit46885d250e3bbaaf838d88102cac94b2bb11112b (patch)
tree907ab07bdd5e9b29270cb8cdb4737e8b55437b95 /hge
parent1d6f201ca9e4c2bef5adcfabc6bf09eef4ac7b6b (diff)
downloadbullet-lab-remix-46885d250e3bbaaf838d88102cac94b2bb11112b.tar.xz
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.
Diffstat (limited to 'hge')
-rw-r--r--hge/input.cpp4
1 files changed, 2 insertions, 2 deletions
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)