Skip to content

Conversation

@AkiSakurai
Copy link
Contributor

@AkiSakurai AkiSakurai commented Aug 22, 2023

Finishing #2371
Fix #2871, Fix #2291

Dedicated artist mode seems unnecessary for macOS as it does not change the behaviour like Windows Ink.

The tilt functionality has not been tested with a real device, so the scale normalisation may differ from that of the official driver.

@Kuuuube Kuuuube added the enhancement New feature or request label Aug 22, 2023
@Kuuuube Kuuuube added this to the v0.7.0 milestone Aug 22, 2023
@sharrr2000
Copy link

I am not a builder and I so appreciate what y’all do and have done. I am an artist pulling my hair out to get my wacoms to work on my new iMac. Wacom driver won’t initiate, and causes kernel panic when installed. Couldn’t believe it when I saw open source on driver for macOS. I’d be happy to donate to this project. Is there now a way to have tilt and pressure for macOS? Being ignorant to coding etc, can anyone help me on this?

@jamesbt365
Copy link
Member

jamesbt365 commented Sep 18, 2023

Try this build: https://cdn.discordapp.com/attachments/158484765136125952/1153342450979582062/OpenTabletDriver-0.7.0.0-osx-x64.tar.gz

Edit: with the changes that discord did you now must post this in any discord channel for the link to work.

@jamesbt365
Copy link
Member

Do keep in mind any builds based off 0.7 at the moment are going to be unstable and not complete in the slightest. This is an experimental development version and may not work, no clue if the build I just sent even runs.

@sharrr2000
Copy link

sharrr2000 commented Sep 18, 2023 via email

@jamesbt365 jamesbt365 added the macos Affects the MacOS platform label Sep 25, 2023
@gonX
Copy link
Member

gonX commented Oct 8, 2023

Note that due to the way you've currently formatted the OP, @AkiSakurai, #2291 will currently not be closed when this is merged, you must use the keyword for every instance of an ID, e.g. "Fix #2871, fix #2291".

See Github Docs: Link PR to issue

@britshickhouse
Copy link

Try this build: https://cdn.discordapp.com/attachments/158484765136125952/1153342450979582062/OpenTabletDriver-0.7.0.0-osx-x64.tar.gz

Confirming that the version quoted here solves it for me - the shift key now works with my old Wacom pad and Photoshop.

@notthewave

This comment was marked as off-topic.

@jamesbt365
Copy link
Member

Plugins and settings are not compatible across versions, you must remove the before using dev builds.

@notthewave
Copy link

notthewave commented Feb 9, 2024

Alright, works perfectly.

@widdowson
Copy link

The build above also fixes the modifier regression when I'm using a Wacom CTL-470.

@helpme2k2

This comment was marked as off-topic.

@jamesbt365

This comment was marked as off-topic.

@sortedcord
Copy link

Hey, I just tested the latest build with your changes applied, and it seems to have fixed the pressure sensitivity on my Gaomon S620. However, button mappings involving modifier keys (Shift, Application, Alt) still don't seem to be working...

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.

Also see #3544

using static MacOS;

public class MacOSAbsolutePointer : MacOSVirtualMouse, IAbsolutePointer
public class MacOSAbsolutePointer : MacOSVirtualMouse, IAbsolutePointer, IPressureHandler
Copy link
Member

Choose a reason for hiding this comment

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

Rather than implementing IPressureHandler in both the absolute and relative pointer, you should be able to do it in just the VirtualMouse directly, as seen here: 921411e

Copy link
Contributor Author

Choose a reason for hiding this comment

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

public interface IPressureHandler : IAbsolutePointer

IPressureHandler is a sub-interface of IAbsolutePointer on the master branch, so I can't move it to VirtualMouse.

I wonder if the current inheritance hierarchy is accurate.

From the user's perspective, tracking mode should ideally be independent of pressure support. However, since most stylus APIs (windows ink, wayland tablet_v2, macos driverkit on major operating systems function in absolute mode, it may be possible to implement a universal relative mode by simulating it through an absolute mode implementation and assume device with pressure is always absolute.

Comment on lines 15 to 16
private const int _DoubleClickMoveTolerance = 8;
private const int _ProximityExpiresDurationInMs = 200;
Copy link
Member

Choose a reason for hiding this comment

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

According to Rider, our convention for private consts is PascalCasing without the underscore in front, ie:

Suggested change
private const int _DoubleClickMoveTolerance = 8;
private const int _ProximityExpiresDurationInMs = 200;
private const int DoubleClickMoveTolerance = 8;
private const int ProximityExpiresDurationInMs = 200;

(the remainder of the code should be adjusted as appropriate, don't just apply this suggestion without renaming other occurences)

}
}

protected void setPressure(float percentage)
Copy link
Member

Choose a reason for hiding this comment

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

should just implement IPressureHandler directly instead (ie. public void SetPressure(float)), as mentioned

using static MacOS;

public class MacOSRelativePointer : MacOSVirtualMouse, IRelativePointer
public class MacOSRelativePointer : MacOSVirtualMouse, IRelativePointer, IPressureHandler
Copy link
Member

Choose a reason for hiding this comment

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

same here, move the IPressureHandler class inheritance to MacOSVirtualMouse

@@ -0,0 +1,9 @@
namespace OpenTabletDriver.Native.OSX.Input
Copy link
Member

Choose a reason for hiding this comment

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

wrong namespace

Suggested change
namespace OpenTabletDriver.Native.OSX.Input
namespace OpenTabletDriver.Native.MacOS.Input

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.

Going to assume this is working, since merging removes the need from having to forward-port the backport.

@gonX gonX merged commit 60cf6d9 into OpenTabletDriver:avalonia Oct 2, 2025
13 checks passed
@gonX gonX added the backport-added A backport is already merged label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-added A backport is already merged enhancement New feature or request macos Affects the MacOS platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Intuos 3 PTZ-630 bug (Shift, Alt, Ctrl problem) [MacOS] Can't double click even with antichatter

10 participants