Call handle_events() from SACT2.Key_IsDown

This function can be called in a loop without any SACT2.Update calls.
This commit is contained in:
Nunuhara Cabbage
2019-12-04 20:13:51 -08:00
parent 2d3bd9fff8
commit c593229f03
+1 -1
View File
@@ -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)