I have learned which Windows hardware IDs correspond with my physical devices, for what it's worth. I tried using ControllerRemap to set my default controls, but so far running that with the -ctrlr flag just crashes MAME, and adding -log just generates an empty log file.
If I double-click and run mame64.exe, I can get the UI to recognize the trackball and spinner. If I run any games, they all go to windowed mode, and the mouse cursor moves over the window, and neither my trackball or spinner are recognized when I try to configure them in specific games.