A certain DAVID MÓRÁSZ has written a SpaceMouse plugin for UE4.22. His website: http://www.mcro.de/
You can download the plugin here: GitHub - microdee/UE4-SpaceMouse: Control Viewport cameras with 3DConnexion SpaceMice, using HID directly..
It’s not perfect (I miss the dominant feature for instance) but it works!