mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 14:05:32 +02:00
raw_key_states shouldn't return button states
This commit is contained in:
parent
f07e32e07b
commit
8484945539
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue