ladybird/Ports/freedink/patches/0001-Remove-android-specific-SDL-hint.patch
2022-05-19 20:17:10 +04:30

27 lines
773 B
Diff

From 53958f5cfb0efa2978bb913ffe610f7903e6c69b Mon Sep 17 00:00:00 2001
From: Brendan Coles <bcoles@gmail.com>
Date: Thu, 28 Oct 2021 11:27:43 +0000
Subject: [PATCH] Remove android-specific SDL hint
---
src/input.cpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/input.cpp b/src/input.cpp
index b5ae21e..b6ac494 100644
--- a/src/input.cpp
+++ b/src/input.cpp
@@ -89,10 +89,6 @@ void input_init(void)
// It also keeps the mouse within the window in software mode.
SDL_SetHint(SDL_HINT_MOUSE_RELATIVE_MODE_WARP, "1");
- // TODO: don't attempt to simulate mouse events from touch events -
- // fake mouse events often are de-centered
- SDL_SetHint(SDL_HINT_ANDROID_SEPARATE_MOUSE_AND_TOUCH, "0");
-
/* Touch devices */
{
int i;
--
2.36.1