My apologies - I might not have understood before. It sounds like where you are you can get the tablet working in terms of drawing/pressure/tilt etc, just not the buttons.
I interpreted your message before that nothing was working, but now I think I’m wrong - it’s only the buttons.
Anyway yes, those tablet side buttons are the worst part of this because everything else seems straightforward.
I’ve found that on the XP Pen, if you have the driver/app installed and running, it intercepts all internal button events and treats them as keyboard input only. If you had the driver running, but turn it off, and leave your tablet plugged in - you’re still in that mode. You can think of it like a switch to use different interfaces in the tablet.
If the driver is never installed, or off - the button events come in through a normal HID (human interface device) API and don’t act like a keyboard.
On the Huion, the buttons are actually wired to act like a keyboard and come through this weird HID/keyboard input which I made actually work with the current version of this project.
The unfortunate bit is that keyboards are a bit locked down permissions-wise if you need to use them. I think it’s that folks don’t want weird apps logging your keystrokes and spying on you without you as a user knowing about it.
So you’re correct - the web app will not identify buttons if they act like a keyboard (driverless mode on the XP Pen should work).
To listen to key input on the Huion, you need to run as root. At least that’s what I found on MacOS and the Raspberry PI OS (which might as well be Debian AFAIK). I haven’t tried this project on Windows yet, so not sure about there.
Anyway, I’ll launch the python script with sudo to use it if I need the tablet buttons on my Huion.
Again, the web app won’t work for this, but the blankslate Python command line configuration builder tool should work for this (again assuming they are minor differences from my tablet).
I’m also doing a bunch of feature work on v0.3. I’ve added an optional config block here that just allow mapping actual key characters to buttons
“keyboard”: {
“mappings”: {
“1”: “button:1”,
“2”: “button:2”,
“3”: “button:3”,
“4”: “button:4”
}
If you’re a dev and can work with github, the main branch on sketchatone should offer this functionality. I think most things are pretty stable - I’m just working on a Python GUI so I can package this thing up as an appliance (Pi4 + screen).
Ideally though - now that you know you need sudo/root access, maybe the existing Huion profile might work. If you don’t have any luck, I’m halfway inclined to buy your tablet because I’m curious. If you DO get it working, I’d love to add your config profile to the project.
Hope that helps!