Mitten icon indicating copy to clipboard operation
Mitten copied to clipboard

[Feature Request] Add Pentablet Pressure Support

Open TheRobberPanda opened this issue 5 months ago • 5 comments

Pen pressure would help pentablet users write text much more naturally. I've seen an attempt at implementing it in the code. I see how this could be a problem since it's a vector-based app, however, I'm sure there is a way for it to be done. I am considering learning C# for this.

                //     uint count = 0;
                //     WintabPacket[] results = _data.GetDataPackets(1, true, ref count);
                //     for (int i = 0; i < count; i++) {
                //         int x = results[i].pkX;
                //         int y = results[i].pkY;
                //         uint pressure = results[i].pkNormalPressure;

                //         Console.WriteLine($"X: {x} -- Y: {y} ::: {pressure}");
                //     }
                // }

TheRobberPanda avatar Aug 18 '25 13:08 TheRobberPanda

I have to apologize for the three consecutive Issues, however, I see a lot of potential in this project. And I want to help out.

TheRobberPanda avatar Aug 18 '25 13:08 TheRobberPanda

Hello, never feel bad for requesting features. A lot of the features in this app were requests by other people behind the scene. If I think that they are good ideas, I will add them.

I am not yet familiar with pentablets. I'm assuming that it's a competing product to Wacom tablets? I'll have to study what their API looks like. I would definitely like to add support for many more tablets.

Apostolique avatar Aug 19 '25 02:08 Apostolique

It is basically wacom tablets but with a screen, pentablet is the generic name, although the correct name is digitizers

TheRobberPanda avatar Aug 19 '25 13:08 TheRobberPanda

It's possible that you can disable Windows Ink and my current wintab code will get your pen pressure. I'm waiting for SDL3 to finish their wintab support and then I should be able to easily support every tablet across all platforms.

Apostolique avatar Aug 20 '25 15:08 Apostolique

Personally, I use linux, instead of Windows Ink or XPpen Drivers, I use OpenTabletDrivers, a general solution for linux PenTablet Support, though I think such a niche implementation goes beyond the scope of this project

TheRobberPanda avatar Aug 20 '25 16:08 TheRobberPanda