Skip to content

Display and control your Android device

Fix boolean condition

Romain Vimont22d78e8a82bc
diff --git a/app/src/input_manager.c b/app/src/input_manager.c
index c7a758f4..cb606d40 100644
--- a/app/src/input_manager.c
+++ b/app/src/input_manager.c
@@ -468,7 +468,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
return;
case SDLK_DOWN:
if (shift) {
- if (!repeat & down) {
+ if (!repeat && down) {
apply_orientation_transform(im,
SC_ORIENTATION_FLIP_180);
}
@@ -479,7 +479,7 @@ sc_input_manager_process_key(struct sc_input_manager *im,
return;
case SDLK_UP:
if (shift) {
- if (!repeat & down) {
+ if (!repeat && down) {
apply_orientation_transform(im,
SC_ORIENTATION_FLIP_180);
}