Skip to content

Commit a49f79b

Browse files
committed
remove unnecessary equality checks
1 parent b079182 commit a49f79b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/platforms/rcore_android.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,8 +1187,8 @@ static int32_t AndroidInputCallback(struct android_app *app, AInputEvent *event)
11871187

11881188
if (type == AINPUT_EVENT_TYPE_MOTION)
11891189
{
1190-
if ((FLAG_IS_SET(source, AINPUT_SOURCE_JOYSTICK) == AINPUT_SOURCE_JOYSTICK) ||
1191-
(FLAG_IS_SET(source, AINPUT_SOURCE_GAMEPAD) == AINPUT_SOURCE_GAMEPAD))
1190+
if (FLAG_IS_SET(source, AINPUT_SOURCE_JOYSTICK) ||
1191+
FLAG_IS_SET(source, AINPUT_SOURCE_GAMEPAD))
11921192
{
11931193
// For now we'll assume a single gamepad which we "detect" on its input event
11941194
CORE.Input.Gamepad.ready[0] = true;
@@ -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)