raw_key_states shouldn't return button states

This commit is contained in:
Struma 2022-07-09 04:24:35 -04:00 committed by Snowdream
parent f07e32e07b
commit 8484945539

View file

@ -298,9 +298,9 @@ RB_METHOD(inputRawKeyStates) {
VALUE ret = rb_ary_new(); VALUE ret = rb_ary_new();
uint8_t *states = shState->input().rawButtonStates(); uint8_t *states = shState->input().rawKeyStates();
for (int i = 0; i < shState->input().rawButtonStatesLength(); i++) for (int i = 0; i < shState->input().rawKeyStatesLength(); i++)
rb_ary_push(ret, rb_bool_new(states[i])); rb_ary_push(ret, rb_bool_new(states[i]));
return ret; return ret;