Add sc_Space to I_AdvanceTrigger() and I_AdvanceTriggerClear()

git-svn-id: https://svn.eduke32.com/eduke32@7856 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-08-01 06:49:43 +00:00 committed by Christoph Oelckers
parent e65fb8ab2a
commit 762c3ebbf6

View file

@ -56,6 +56,7 @@ void I_ClearAllInput(void)
int32_t I_AdvanceTrigger(void) int32_t I_AdvanceTrigger(void)
{ {
return ( return (
KB_KeyPressed(sc_Space) ||
KB_KeyPressed(sc_kpad_Enter) || KB_KeyPressed(sc_kpad_Enter) ||
KB_KeyPressed(sc_Enter) || KB_KeyPressed(sc_Enter) ||
#if !defined EDUKE32_TOUCH_DEVICES #if !defined EDUKE32_TOUCH_DEVICES
@ -77,6 +78,7 @@ int32_t I_AdvanceTrigger(void)
void I_AdvanceTriggerClear(void) void I_AdvanceTriggerClear(void)
{ {
KB_FlushKeyboardQueue(); KB_FlushKeyboardQueue();
KB_ClearKeyDown(sc_Space);
KB_ClearKeyDown(sc_kpad_Enter); KB_ClearKeyDown(sc_kpad_Enter);
KB_ClearKeyDown(sc_Enter); KB_ClearKeyDown(sc_Enter);
MOUSE_ClearButton(LEFT_MOUSE); MOUSE_ClearButton(LEFT_MOUSE);