btn() always returns number #339
This commit is contained in:
parent
2c00e7bd2d
commit
2e09116513
|
@ -200,7 +200,7 @@ static duk_ret_t duk_btn(duk_context* duk)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
s32 index = duk_to_int(duk, 0) & 0xf;
|
s32 index = duk_to_int(duk, 0) & 0xf;
|
||||||
duk_push_uint(duk, machine->memory.ram.vram.input.gamepad.data & (1 << index));
|
duk_push_boolean(duk, machine->memory.ram.vram.input.gamepad.data & (1 << index));
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue