diff --git a/src/SFML/Window/Win32/JoystickImpl.cpp b/src/SFML/Window/Win32/JoystickImpl.cpp index c2645e8fe..7f2bec2a4 100644 --- a/src/SFML/Window/Win32/JoystickImpl.cpp +++ b/src/SFML/Window/Win32/JoystickImpl.cpp @@ -167,8 +167,8 @@ JoystickState JoystickImpl::update() if (pos.dwPOV != 0xFFFF) { float angle = pos.dwPOV / 18000.f * 3.141592654f; - state.axes[Joystick::PovX] = std::cos(angle) * 100; - state.axes[Joystick::PovY] = std::sin(angle) * 100; + state.axes[Joystick::PovX] = std::sin(angle) * 100; + state.axes[Joystick::PovY] = std::cos(angle) * 100; } else { diff --git a/src/SFML/Window/Win32/WindowImplWin32.cpp b/src/SFML/Window/Win32/WindowImplWin32.cpp index 06d73bd4b..22830bcd3 100644 --- a/src/SFML/Window/Win32/WindowImplWin32.cpp +++ b/src/SFML/Window/Win32/WindowImplWin32.cpp @@ -40,8 +40,6 @@ #include #include -#include - // MinGW lacks the definition of some Win32 constants #ifndef XBUTTON1 #define XBUTTON1 0x0001 @@ -771,8 +769,6 @@ 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