Theoretically you could create it with KDEConnect on a phone and use it as a mouse
this might be easiest to implement as you’d need a smartphone, a pc, then install KDEConnect on both
the con being the mouse part becomes more of a haptic trackpad as the phone itself doesn’t relay back global positioning changes(although it could with GPS but might not be cost/time-effective)