Fixed joystick POV values on Windows (PovX and PovY were inverted)

This commit is contained in:
Laurent Gomila 2013-11-26 22:28:03 +01:00
parent 4063f5d9eb
commit f1c30f106a

View File

@ -40,6 +40,8 @@
#include <SFML/System/Utf.hpp>
#include <vector>
#include <iostream>
// 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