mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 12:51:05 +08:00
Fixed joystick POV values on Windows (PovX and PovY were inverted)
This commit is contained in:
parent
4063f5d9eb
commit
f1c30f106a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user