[Blender 2.91 and XP-Pen Tablet] Pen buttons not working

I recently got a XP-pen deco 01 v2. The problem I have is I can’t get the side pen buttons and the pen pressure to work, and I tried tweaking with the tablet settings and blender settings. If I have pen pressure then the buttons don’t work, if the buttons work then I don’t have pen pressure.

I have one button set to middle mouse click, one set to right click. I used a wacom before with the same settings and didn’t have this issue. Is there a way to fix this aside from emulating 3-button mouse?

Same thing here with Huion hs610.
To have pressure working i have to select windows ink in Blender but tis way pen buttons are disabled.

Try the current daily build.