Framework 12 stylus coordinate issues on arch with wayland/niri

Hello, I have a weird issue where the pen tilt is inverted along the Y axis, as well as mirrored along both when rotating the screen with fw12tab-niri

Framework 12 intel 13th gen.

Running up to date archlinux with wayland/niri with fw12tab-niri to help with tablet mode.

The stylus tilt specifically is being mirrored along the Y axis when in landscape orientation. When rotating in tablet mode, stylus input (not just tilt) behaves in even more bizarre ways like being rotated 90 degrees or being mirrored along both axes. Where would the config for the stylus tilt orientation be? Thanks!

Welcome to the forum!
I would first try restarting the stylus by taking out the battery and putting it back in.
I would also try using the stylus without fw12tab-niri. If the stylus works without it, it’s likely an issue with that program.
If that doesn’t fix it, I would try messing around with niri’s input settings. I would post a link to them, but doing so causes my post to be blocked. Just look for niri’s github io page. Maybe you could fix it by flipping the sign of some numbers in the calibration matrix?