From c593229f0375939ed82d6967f1cac5f784ea58fd Mon Sep 17 00:00:00 2001 From: Nunuhara Cabbage Date: Wed, 4 Dec 2019 20:13:51 -0800 Subject: [PATCH] Call handle_events() from SACT2.Key_IsDown This function can be called in a loop without any SACT2.Update calls. --- hll/SACT2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hll/SACT2.c b/hll/SACT2.c index 4f0cf9b..ee22e59 100644 --- a/hll/SACT2.c +++ b/hll/SACT2.c @@ -411,7 +411,7 @@ hll_defun(Joypad_GetDigitalStickStatus, args) // int Key_ClearFlag(void) hll_defun_inline(Key_ClearFlag, (key_clear_flag(), 1)); // int Key_IsDown(int nKeyCode) -hll_defun_inline(Key_IsDown, key_is_down(a[0].i)); +hll_defun_inline(Key_IsDown, (handle_events(), key_is_down(a[0].i))); // int Timer_Get(void) hll_defun_inline(Timer_Get, vm_time()); // int CG_IsExist(int nCG)