You can always discover a mouse by walking inputs and looking for mouse X and Y types, e.g. things like this: <control type="mouse" player="1" minimum="0" maximum="255" sensitivity="100" keydelta="5"/>
You can find these elements in both machines and slot devices.