Skip to content

Commit 38410b5

Browse files
committed
remove unnecessary equality checks
1 parent b079182 commit 38410b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/platforms/rcore_android.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1251,8 +1251,8 @@ static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event)
12511251
//int32_t AKeyEvent_getMetaState(event);
12521252

12531253
// Handle gamepad button presses and releases
1254-
if ((FLAG_IS_SET(source, AINPUT_SOURCE_JOYSTICK) == AINPUT_SOURCE_JOYSTICK) ||
1255-
(FLAG_IS_SET(source, AINPUT_SOURCE_GAMEPAD) == AINPUT_SOURCE_GAMEPAD))
1254+
if (FLAG_IS_SET(source, AINPUT_SOURCE_JOYSTICK) ||
1255+
FLAG_IS_SET(source, AINPUT_SOURCE_GAMEPAD))
12561256
{
12571257
// For now we'll assume a single gamepad which we "detect" on its input event
12581258
CORE.Input.Gamepad.ready[0] = true;

0 commit comments

Comments
 (0)