Make cargo ship selection joystick more intuitive
Change-Id: I166022540bc9c3083923f115e77a5ed4da3c620b
diff --git a/y2019/joystick_reader.cc b/y2019/joystick_reader.cc
index b3f5aa8..a4c2428 100644
--- a/y2019/joystick_reader.cc
+++ b/y2019/joystick_reader.cc
@@ -187,9 +187,9 @@
const double cargo_joy_y = data.GetAxis(kCargoSelectorY);
const double cargo_joy_x = data.GetAxis(kCargoSelectorX);
if (cargo_joy_y > 0.5) {
- target_hint->suggested_target = 3;
- } else if (cargo_joy_y < -0.5) {
target_hint->suggested_target = 1;
+ } else if (cargo_joy_y < -0.5) {
+ target_hint->suggested_target = 3;
} else if (::std::abs(cargo_joy_x) > 0.5) {
target_hint->suggested_target = 2;
} else {