Good info. I didn't know they were the same. I have a Mini I-Pac, might try to hook it up to the trackball/spinner connectors.
The only thing is, the I-Pac diagram shows 4 pins (+5 volt, Gnd, X1, X2) but the buttons I have only have 3 pins (Gnd, P1, P2). Any clue on how I should try hooking it up?
Pretent the +5 volt is magically connected, and connect the others as usual. The power is for the LED, and your mechanical rotary switch doesn't need the power. It might act like an active low (or active high) input, though. Try ipac's default, and if that doesn't work, try the other.
This is fine for Forgotten Worlds, Ikari or Heavy Barrel in mame, or any other game that simulates the game's rotary with mame's "dial" type input.
Stop including Forgotten Worlds with Ikari and those types. FW uses a spinner, not a rotary style device.
Like Kremmit said, but that's what happens when I skip a word.

Above sentence with missing word; notice the word "simulates" also, even before the missing word is added:
- This is fine for Forgotten Worlds, Ikari or Heavy Barrel in mame, or any other game that mame simulates the game's rotary with mame's "dial" type input.
And Mame's "dial" input is a spinner, first and foremost, not a rotary device, so your correction should have been "Stop including Ikari & the like with FW; Ikari used a rotary device not a spinner"
Sorry for the mistyping.
FWIW, more details:
FW used a spinner button,
Ikari used a 12-direction rotary joystick
Caliber .50 used an optical rotary joystick (with 24 teeth/24 gaps)
-
Mame simulates all of these original hardware the same: as a "dial". FW & Cal 50 physically detected rotation the same way as PC "dials" do.
Front Line used a 8 direction rotary switch
Mame simulates this original hardware as an 8-way joystick.
Xybots (or somename like that

) used a return-to-center left/right "rotary" switch.
Mame simulates this original hardware as two buttons.