From 346363af68c96750613d8b88bc76ccbc3cffe0a2 Mon Sep 17 00:00:00 2001 From: A Frederick Christensen Date: Sun, 14 Jan 2024 11:20:12 -0600 Subject: [PATCH] Add simple-touch-input page and links --- Home.md | 1 + _Sidebar.md | 1 + simple-touch-input.md | 24 ++++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 simple-touch-input.md diff --git a/Home.md b/Home.md index b5f0d54..635be9b 100644 --- a/Home.md +++ b/Home.md @@ -40,6 +40,7 @@ Additionally, when you have write access to this repository, remove the `.md` fi * [en-keycodes](https://codeberg.org/dwl/dwl-patches/wiki/en-keycodes) * [numlock-capslock](https://codeberg.org/dwl/dwl-patches/wiki/numlock-capslock) * [naturalscrolltrackpad](https://codeberg.org/dwl/dwl-patches/wiki/naturalscrolltrackpad) +* [simple-touch-input](https://codeberg.org/dwl/dwl-patches/wiki/simple-touch-screen) ## Cursor * [unclutter](https://codeberg.org/dwl/dwl-patches/wiki/unclutter) ## Monitor diff --git a/_Sidebar.md b/_Sidebar.md index f0d9420..4e9ec6d 100644 --- a/_Sidebar.md +++ b/_Sidebar.md @@ -21,6 +21,7 @@ * [singletagset](https://codeberg.org/dwl/dwl-patches/wiki/singletagset) * [skipfocus](https://codeberg.org/dwl/dwl-patches/wiki/skipfocus) * [simpleborders](https://codeberg.org/dwl/dwl-patches/wiki/simpleborders) +* [simple-touch-input](https://codeberg.org/dwl/dwl-patches/wiki/simple-touch-screen) * [singlemaster](https://codeberg.org/dwl/dwl-patches/wiki/singlemaster) * [smartborders](https://codeberg.org/dwl/dwl-patches/wiki/smartborders) * [snail](https://codeberg.org/dwl/dwl-patches/wiki/snail) diff --git a/simple-touch-input.md b/simple-touch-input.md new file mode 100644 index 0000000..ad54770 --- /dev/null +++ b/simple-touch-input.md @@ -0,0 +1,24 @@ +### Description +Adds SIMPLE touchscreen functionality. +Currently emulates mouse movement and button presses. + +This patch may be used with or without the pointer-constraints branch from [anon_cvptw's repository](https://codeberg.org/anon_cvptw/dwl/src/branch/main). **To use this WITH pointer-constraints, you must add `#define POINTERCONSTRAINTS` to `config.h`.** + +If you're maintaining this patch, be sure to watch for changes to the `motionabsolute` function in anon_cvptw's `main` branch: + +The `touchdown` function in the patch incorporates the contents of the `motionabsolute` function (as modified by pointer-constraints), adds in the `wlr_cursor_warp_closest` call and then the button press. + +If `motionabsolute` is modified, `touchdown` should [likely] mirror any of its modifications. + +If/when anon_cvptw's pointer-constraints pull request is merged into the [upstream](https://codeberg.org/dwl/dwl) codebase, this remark will be removed from the simple-touch-input patch branch commit, and things will be significantly simplified. + +KNOWN BUGS: +- Sometimes, the pointer moves to where the screen is pressed, but the button press doesn't occur until the screen is touched AGAIN. This means that if you touch to click button 'Q' on the screen (for instance), nothing happens; then you touch elsewhere on the screen and THEN button 'Q' registers a click. This is annoying, doesn't always happen, and I don't yet know how to fix it. + +### Download +- [git branch](https://codeberg.org/fauxmight/dwl/src/branch/simple-touch-input) +- [2024-01-14](https://codeberg.org/dwl/dwl-patches/raw/branch/main/simple-touch-input/simple-touch-input.patch) + +### Authors +- [fauxmight](https://codeberg.org/fauxmight) +- [Unprex](https://github.com/Unprex)