Okay ? It can be lib. Just make wayland use it, not be thing every DE needs to. DE shouldn't care about where the mouse movement data comes from and should not need to compensate based on device.
This latter is pretty much a library to build your own de with minimal code up on top.
All these conversations end up kinda pointless because of a sort of "it works on my machine[desktop environment]".