mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-02-17 04:39:34 +00:00
Better smoothing and added missing break on MOUSE_WHEEL
This commit is contained in:
parent
fc1b83fd93
commit
b0307301e3
@ -888,6 +888,7 @@ int main(int argc, char *argv[]) {
|
||||
key.flags = KEY_UP;
|
||||
NativeKey(key);
|
||||
}
|
||||
break;
|
||||
case SDL_MOUSEMOTION:
|
||||
if (mouseDown) {
|
||||
TouchInput input;
|
||||
@ -897,8 +898,8 @@ int main(int argc, char *argv[]) {
|
||||
input.id = 0;
|
||||
NativeTouch(input);
|
||||
}
|
||||
mouseDeltaX = event.motion.xrel;
|
||||
mouseDeltaY = event.motion.yrel;
|
||||
mouseDeltaX += event.motion.xrel;
|
||||
mouseDeltaY += event.motion.yrel;
|
||||
break;
|
||||
case SDL_MOUSEBUTTONUP:
|
||||
switch (event.button.button) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user