Skip to content

Conversation

@AkiSakurai
Copy link
Contributor

A separate option for disabling pressure and tilt might be better than duplicating them to create more combinations of modes.

@Kuuuube
Copy link
Member

Kuuuube commented Nov 27, 2024

What's the reasoning behind wanting this option? Considering #2894 mentions it not changing behavior.

@AkiSakurai
Copy link
Contributor Author

It doesn’t affect apps that don’t support pressure sensitivity. However, in apps that do, it’s not always possible to turn off pressure sensitivity to achieve a consistent stroke width. For example, I couldn’t find a way to do this in OneNote. I also remember seeing people who wanted to temporarily disable this feature.

Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM, but not sure if the UI approach is correct here. Can you provide a screenshot of how this looks in the pen binding tab?

@gonX gonX added this to the v0.6.5 milestone Nov 30, 2024
@AkiSakurai
Copy link
Contributor Author

Generally LGTM, but not sure if the UI approach is correct here. Can you provide a screenshot of how this looks in the pen binding tab?

@InfinityGhost InfinityGhost added enhancement New feature or request gui Affects driver GUI labels Dec 4, 2024
@gonX gonX requested a review from InfinityGhost December 12, 2024 21:39
Comment on lines 47 to 50
/// <summary>
/// Whether to disable pressure
/// </summary>
public bool DisablePressure { set; get; }

/// <summary>
/// Whether to disable tilt
/// </summary>
public bool DisableTilt { set; get; }

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this necessary now that it's also defined in IOutputMode? This class inherits from IOutputMode anyway.

@gonX
Copy link
Member

gonX commented Dec 15, 2024

I'm going to move this to the 0.6.6 milestone since changes are still requested.

@gonX gonX modified the milestones: v0.6.5, v0.6.6 Dec 15, 2024
@gonX gonX added the needs verification The changes have yet to be verified for functionality label Dec 22, 2024
@gonX gonX self-assigned this Dec 22, 2024
@gonX
Copy link
Member

gonX commented Dec 22, 2024

Needs testing on Linux, will do this at some point.

There are merge conflicts, btw.

Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pressure/tilt status is logged even when using output modes that don't implement pressure/tilt (like Absolute Mode on Windows or Linux). I feel this can be confusing for users using a mode that doesn't support this. I've attached a patchfile that fixes this.

0001-daemon-Only-log-pressure-tilt-when-relevant.patch.gz
(github didn't like the naked patch file)

The patch checks for IPressureHandler/ITiltHandler before spewing log output - this was annoying to fix given the current typing, since Pointer only exists in AbsoluteOutputMode/RelativeOutputMode, not in OutputMode itself.

gonX
gonX previously approved these changes Feb 3, 2025
Copy link
Member

@gonX gonX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but this has conflicts and I would like to merge it. Do you want me to handle this or would you like to fix it yourself?

@gonX gonX dismissed InfinityGhost’s stale review February 3, 2025 21:44

All changes requested has been resolved (the requested properties was moved to IOutputMode)

@gonX gonX removed the needs verification The changes have yet to be verified for functionality label Feb 3, 2025
@gonX gonX modified the milestones: v0.6.7, v0.6.6 Aug 31, 2025
Copy link
Member

@Kuuuube Kuuuube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Works as advertised. On linux with artist mode since the tip binding is triggered solely by pressure this just kills tip input entirely, maybe there's a way artist mode can send a tip down without pressure. In other output modes the tip down does send like normal since it's solely OTD triggering it.

@Kuuuube Kuuuube merged commit 9b22a6c into OpenTabletDriver:0.6.x Sep 2, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request gui Affects driver GUI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants