From 2ec8606fcb1f80569f7a73b940a8bf7fb5a291f7 Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Fri, 21 Dec 2012 17:13:00 +0100 Subject: [PATCH] Flip Y axis for xinput --- Windows/XinputDevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Windows/XinputDevice.cpp b/Windows/XinputDevice.cpp index 86fc0dab64..6f7687f49b 100644 --- a/Windows/XinputDevice.cpp +++ b/Windows/XinputDevice.cpp @@ -41,7 +41,7 @@ int XinputDevice::UpdateState() { if ( dwResult == ERROR_SUCCESS ) { this->ApplyDiff(state); Stick left = NormalizedDeadzoneFilter(state); - __CtrlSetAnalog(left.x, left.y); + __CtrlSetAnalog(left.x, -left.y); this->prevState = state; this->check_delay = 0; return 0;