From f1c30f106af0c27bb82331220716f1ab3e753d7d Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Tue, 26 Nov 2013 22:28:03 +0100 Subject: [PATCH] Fixed joystick POV values on Windows (PovX and PovY were inverted) --- src/SFML/Window/Win32/WindowImplWin32.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 22830bcd..06d73bd4 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -40,6 +40,8 @@ #include #include +#include + // MinGW lacks the definition of some Win32 constants #ifndef XBUTTON1 #define XBUTTON1 0x0001 @@ -769,6 +771,8 @@ void WindowImplWin32::processEvent(UINT message, WPARAM wParam, LPARAM lParam) //////////////////////////////////////////////////////////// Keyboard::Key WindowImplWin32::virtualKeyCodeToSF(WPARAM key, LPARAM flags) { + std::cout << "VM = " << std::hex << key << std::endl; + switch (key) { // Check the scancode to distinguish between left and right shift