diff --git a/input.cpp b/input.cpp index 239f31b..5ee2083 100644 --- a/input.cpp +++ b/input.cpp @@ -1750,7 +1750,7 @@ static void input_cb(struct input_event *ev, struct input_absinfo *absinfo, int if (ev->type == EV_ABS) { - int threshold = (absinfo->maximum - absinfo->minimum) / 10; + int threshold = (absinfo->maximum - absinfo->minimum) / 5; max = (ev->value >= (absinfo->maximum - threshold)); min = (ev->value <= (absinfo->minimum + threshold)); @@ -2485,6 +2485,11 @@ int input_test(int getchar) //LT/RT analog continue; } + else if(ev.code & 1) + { + //Y axes on wiimote and accessories are inverted + ev.value = -ev.value; + } } }