URL:
<http://gna.org/patch/?851>
Summary: Fixes keypress issue
Project: Warzone Resurrection Project
Submitted by: buginator
Submitted on: Wednesday 11/14/2007 at 23:47
Category: Fix
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Reverts part of patch r2242. It was eating up keys for no good reason.
Index: input.c
===================================================================
--- input.c (revision 2821)
+++ input.c (working copy)
@@ -286,16 +286,9 @@
aKeyState[code].state == KEY_PRESSRELEASE )
{
//whether double key press or not
- if ( gameTime - aKeyState[code].lastdown <
DOUBLE_CLICK_INTERVAL )
- {
- aKeyState[code].state = KEY_DOUBLECLICK;
- aKeyState[code].lastdown = 0;
- }
- else
- {
aKeyState[code].state = KEY_PRESSED;
- aKeyState[code].lastdown = gameTime;
- }
+ aKeyState[code].lastdown = 0;
+
}
break;
case SDL_KEYUP:
@@ -305,7 +298,7 @@
aKeyState[code].state = KEY_PRESSRELEASE;
}
else if (aKeyState[code].state == KEY_DOWN ||
- aKeyState[code].state ==
KEY_DOUBLECLICK)
+ aKeyState[code].state ==
KEY_DOUBLECLICK)//see r2242
{
aKeyState[code].state = KEY_RELEASED;
}
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?851>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev