Skip to content

Commit

Permalink
fix problem with change volume audio
Browse files Browse the repository at this point in the history
  • Loading branch information
VadimBoev committed Sep 23, 2024
1 parent 595a6b8 commit a839e6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Binary file modified FlappyBird/app/build/outputs/apk/FlappyBird-signed.apk
Binary file not shown.
4 changes: 2 additions & 2 deletions FlappyBird/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"
package="com.flappybird.game"

android:versionCode="13"
android:versionName="1.3">
android:versionCode="14"
android:versionName="1.4">

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="30" />

Expand Down
9 changes: 8 additions & 1 deletion FlappyBird/app/src/main/jni/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static void handleAppCmd(struct android_app* app, int32_t cmd)
}
}

void handle_input(struct android_app* app, AInputEvent* event)
int32_t handle_input(struct android_app* app, AInputEvent* event)
{
int32_t eventType = AInputEvent_getType(event);

Expand Down Expand Up @@ -56,7 +56,14 @@ void handle_input(struct android_app* app, AInputEvent* event)
}

MouseUpdate(&mouse, x, y, isDown, isReleased, isMoved);

return 1;
}
//else if (eventType == AINPUT_EVENT_TYPE_KEY) //Apparently, this applies to physical keys, including volume control keys.
//{
// return 0;
//}
return 0; //Return 0 if you are not processing the event
}

#define TARGET_FPS 60
Expand Down
Binary file modified FlappyBird/app/src/main/libs/arm64-v8a/libflappybird.so
Binary file not shown.
Binary file modified FlappyBird/app/src/main/libs/armeabi-v7a/libflappybird.so
Binary file not shown.

0 comments on commit a839e6c

Please sign in to comment.