From f66f8558128fc90b6fd0df215eee48d80c093413 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Mon, 5 Nov 2018 23:28:26 +1000 Subject: [PATCH] libsdl2: disable pointer history --- media-libs/libsdl2/libsdl2-2.0.8.recipe | 2 +- .../libsdl2/patches/libsdl2-2.0.8.patchset | 62 +++++++++++++------ 2 files changed, 43 insertions(+), 21 deletions(-) diff --git a/media-libs/libsdl2/libsdl2-2.0.8.recipe b/media-libs/libsdl2/libsdl2-2.0.8.recipe index 1ede9f14d..889642d06 100644 --- a/media-libs/libsdl2/libsdl2-2.0.8.recipe +++ b/media-libs/libsdl2/libsdl2-2.0.8.recipe @@ -6,7 +6,7 @@ software, emulators, and popular games." HOMEPAGE="https://www.libsdl.org/" COPYRIGHT="1997-2018 Sam Lantinga" LICENSE="Zlib" -REVISION="3" +REVISION="4" SOURCE_URI="https://www.libsdl.org/release/SDL2-$portVersion.tar.gz" CHECKSUM_SHA256="edc77c57308661d576e843344d8638e025a7818bff73f8fbfab09c3c5fd092ec" SOURCE_DIR="SDL2-$portVersion" diff --git a/media-libs/libsdl2/patches/libsdl2-2.0.8.patchset b/media-libs/libsdl2/patches/libsdl2-2.0.8.patchset index 5ecc7da9d..9ae532809 100644 --- a/media-libs/libsdl2/patches/libsdl2-2.0.8.patchset +++ b/media-libs/libsdl2/patches/libsdl2-2.0.8.patchset @@ -1,4 +1,4 @@ -From 6f1ce1552683c15a58706bdbb7b895b604bc08d4 Mon Sep 17 00:00:00 2001 +From 48b9c8305a33b9bde0b879a1c5d3a456f09a574d Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Fri, 29 Aug 2014 15:24:11 +0000 Subject: haiku patch @@ -27,10 +27,10 @@ index 3456932..d32eb94 100644 &location)) == B_OK) { return location; -- -2.19.0 +2.19.1 -From f9b2314e6abbb4b5c7fdec8c55c878708f829b99 Mon Sep 17 00:00:00 2001 +From 3358c8c444d7ef9f31e61d5b8a67c419f9d59ee8 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Thu, 25 Feb 2016 20:23:41 +0000 Subject: remove nacl, missing templates on Haiku @@ -75,10 +75,10 @@ index 1c7e793..8e3a74b 100644 { AC_ARG_ENABLE(video-rpi, -- -2.19.0 +2.19.1 -From ef7f8f41c44d90762a53552795ad595575150302 Mon Sep 17 00:00:00 2001 +From 98a39780b033340cc80f9b2ca7c119545132f475 Mon Sep 17 00:00:00 2001 From: Jerome Duval Date: Sat, 30 Sep 2017 13:36:12 +0200 Subject: fix AC_DEFINE @@ -98,10 +98,10 @@ index 8e3a74b..d4d38e4 100644 ]) AC_MSG_RESULT($have_xinput2_multitouch) -- -2.19.0 +2.19.1 -From 6f00f7e3cf2ccaac41860980526654b07ad0602b Mon Sep 17 00:00:00 2001 +From b0808c2055898a8ff28d80c0278b287d5d717de1 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 2 Feb 2018 09:40:46 +0100 Subject: Fix secondary arch build. @@ -146,10 +146,10 @@ index d4d38e4..7c3a166 100644 arm*-apple-darwin*|*-ios-*) ARCH=ios -- -2.19.0 +2.19.1 -From 342bf540924b738ebb7c2ae0bf7f6e433ce5a07c Mon Sep 17 00:00:00 2001 +From e18d75302456a1e760e65006348d134a0b615a53 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Fri, 2 Feb 2018 10:40:00 +0100 Subject: Fix crash when opening window @@ -204,10 +204,10 @@ index 3e61888..bd4aae7 100644 thread_id _draw_thread_id; -- -2.19.0 +2.19.1 -From 43b13f20932a7e016317246f6264fca7a16af3a3 Mon Sep 17 00:00:00 2001 +From 095720502928ed33db2c43652da8f709bbe40898 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Sat, 15 Sep 2018 23:16:25 +1000 Subject: Add simple relative mode for mouse @@ -240,10 +240,10 @@ index ba3f927..7d4f442 100644 BE_UpdateWindowFramebuffer(NULL,win,NULL,-1); } -- -2.19.0 +2.19.1 -From 152682748a615a217309e0ed827d121ccaa6f326 Mon Sep 17 00:00:00 2001 +From efd7af38ed0f758be25ad7bee6d35b4f42b0a4f9 Mon Sep 17 00:00:00 2001 From: Gerasim Troeglazov <3dEyes@gmail.com> Date: Tue, 18 Sep 2018 20:47:07 +1000 Subject: Add support for relative mouse mode @@ -339,10 +339,10 @@ index bd4aae7..370bdce 100644 _last_buttons = buttons; -- -2.19.0 +2.19.1 -From 012ec895e9147bb2d58e104d867d1a39be60aba9 Mon Sep 17 00:00:00 2001 +From 16fe5519dea5fe5b76981c92963158fe82e1b6af Mon Sep 17 00:00:00 2001 From: Peter Kosyh Date: Sat, 6 Oct 2018 12:48:15 +0300 Subject: haiku: mouse->ShowMouse method added @@ -416,10 +416,10 @@ index afe20e3..c0b1d30 100644 #if SDL_VIDEO_OPENGL /* testgl application doesn't load library, just tries to load symbols */ -- -2.19.0 +2.19.1 -From 271462fa0d722f47c669a19ea262e45e419cc51f Mon Sep 17 00:00:00 2001 +From db347fbc1c8185e94832b4b6e1e51755574b2618 Mon Sep 17 00:00:00 2001 From: Peter Kosyh Date: Sat, 6 Oct 2018 13:50:30 +0300 Subject: mouse_relative fix @@ -441,10 +441,10 @@ index 5ff8bf1..e0a4b9b 100644 SDL_GetWindowSize(win, &winWidth, &winHeight); SDL_GetWindowPosition(win, &winPosX, &winPosY); -- -2.19.0 +2.19.1 -From a3b7305da8b8c5f7c0375644ed5d4a713f06bdaf Mon Sep 17 00:00:00 2001 +From 077e80dc6886bf113fc069b8065e1be3d552eb6c Mon Sep 17 00:00:00 2001 From: Peter Kosyh Date: Sat, 6 Oct 2018 14:28:41 +0300 Subject: mouse wheel y invert @@ -464,5 +464,27 @@ index e0a4b9b..d59ac34 100644 void _HandleKey(BMessage *msg) { -- -2.19.0 +2.19.1 + + +From 3c895da89f0099ba0ce426d07d6cafa9b342ecad Mon Sep 17 00:00:00 2001 +From: Gerasim Troeglazov <3dEyes@gmail.com> +Date: Mon, 5 Nov 2018 23:25:54 +1000 +Subject: Disable pointer history + + +diff --git a/src/video/haiku/SDL_BWin.h b/src/video/haiku/SDL_BWin.h +index 370bdce..7ff8ead 100644 +--- a/src/video/haiku/SDL_BWin.h ++++ b/src/video/haiku/SDL_BWin.h +@@ -140,6 +140,7 @@ class SDL_BWin:public BDirectWindow + _gl_type = gl_flags; + } + AddChild(_SDL_GLView); ++ _SDL_GLView->SetEventMask(B_POINTER_EVENTS | B_KEYBOARD_EVENTS, B_NO_POINTER_HISTORY); + _SDL_GLView->EnableDirectMode(true); + _SDL_GLView->LockGL(); /* "New" GLViews are created */ + Unlock(); +-- +2.19.1