mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
mouse delta fix
This commit is contained in:
parent
5e5bffc808
commit
6206908a9e
1 changed files with 4 additions and 0 deletions
|
@ -71,6 +71,7 @@
|
|||
|
||||
#include "Windows/main.h"
|
||||
#include "UI/OnScreenDisplay.h"
|
||||
#include <Core/HLE/Plugins.h>
|
||||
|
||||
float g_mouseDeltaX = 0;
|
||||
float g_mouseDeltaY = 0;
|
||||
|
@ -258,6 +259,9 @@ void WindowsHost::PollControllers() {
|
|||
|
||||
g_mouseDeltaX *= g_Config.fMouseSmoothing;
|
||||
g_mouseDeltaY *= g_Config.fMouseSmoothing;
|
||||
|
||||
HLEPlugins::PluginDataAxis[JOYSTICK_AXIS_MOUSE_REL_X] = g_mouseDeltaX;
|
||||
HLEPlugins::PluginDataAxis[JOYSTICK_AXIS_MOUSE_REL_Y] = g_mouseDeltaY;
|
||||
}
|
||||
|
||||
void WindowsHost::BootDone() {
|
||||
|
|
Loading…
Add table
Reference in a new issue