diff --git a/build/android/AndroidManifest.xml b/build/android/AndroidManifest.xml index 5ecdfae..065756a 100644 --- a/build/android/AndroidManifest.xml +++ b/build/android/AndroidManifest.xml @@ -4,12 +4,12 @@ --> - + diff --git a/build/android/default.properties b/build/android/default.properties deleted file mode 100644 index 0cdab95..0000000 --- a/build/android/default.properties +++ /dev/null @@ -1,11 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# Project target. -target=android-12 diff --git a/build/android/project.properties b/build/android/project.properties index 0f507e5..8937e94 100644 --- a/build/android/project.properties +++ b/build/android/project.properties @@ -11,4 +11,4 @@ #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt # Project target. -target=android-12 +target=android-14 diff --git a/src/jsapi.c b/src/jsapi.c index 65c9567..7eea49b 100644 --- a/src/jsapi.c +++ b/src/jsapi.c @@ -200,7 +200,7 @@ static duk_ret_t duk_btn(duk_context* duk) else { 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;