[PR #10] [MERGED] fix: always set pen pressure/distance #22

Closed
opened 2026-10-15 12:51:21 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/games-on-whales/inputtino/pull/10
Author: @cfalas
Created: 6/26/2024
Status: ✅ Merged
Merged: 6/26/2024
Merged by: @ABeltramo

Base: stable ← Head: stable


📝 Commits (2)

  • 2f71620 fix: always set pen pressure/distance
  • fe22599 feat: added test and comment

📊 Changes

2 files changed (+19 additions, -1 deletions)

View changed files

📝 src/uinput/pentablet.cpp (+5 -1)
📝 tests/testLibinput.cpp (+14 -0)

📄 Description

Some applications only depend on pressure (e.g. Xournal++), and hence the pen doesn't always 'release' when the pen is hovering. This is because the application completely disregards ABS_DISTANCE and only looks at ABS_PRESSURE, which contains the last updated pressure, which was when the pen was still touching.

This fixes the second part of https://github.com/LizardByte/Sunshine/issues/2756.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/games-on-whales/inputtino/pull/10 **Author:** [@cfalas](https://github.com/cfalas) **Created:** 6/26/2024 **Status:** ✅ Merged **Merged:** 6/26/2024 **Merged by:** [@ABeltramo](https://github.com/ABeltramo) **Base:** `stable` ← **Head:** `stable` --- ### 📝 Commits (2) - [`2f71620`](https://github.com/games-on-whales/inputtino/commit/2f716209c50c0c519202eb4ad71e854f7b679df9) fix: always set pen pressure/distance - [`fe22599`](https://github.com/games-on-whales/inputtino/commit/fe22599145e808d785241ce81229eee06b1a47f4) feat: added test and comment ### 📊 Changes **2 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/uinput/pentablet.cpp` (+5 -1) 📝 `tests/testLibinput.cpp` (+14 -0) </details> ### 📄 Description Some applications only depend on pressure (e.g. Xournal++), and hence the pen doesn't always 'release' when the pen is hovering. This is because the application completely disregards ABS_DISTANCE and only looks at ABS_PRESSURE, which contains the last updated pressure, which was when the pen was still touching. This fixes the second part of https://github.com/LizardByte/Sunshine/issues/2756. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-15 12:51:21 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
games-on-whales/inputtino#22
No description provided.