On the odd side of things, but it may be possible pending the hardware input device arrangement and how flexible MAME can be with different input devices or vice versa. iirc back in the late 1990s, while in the waiting room of a doctors office, I was reading a medical trade magazine that was part of reading materials there and in back pages of trade magazine there were one or two advertisements for devices that could be an interface between a computer and medical equipment in which the patients real time data could be shown on the computer monitor as well as being shown on medical device.
The backpages advertisements were not articles and one would have to be in the practice to be familiar with the products. At the time, it wasn't something that was worth memorizing at the time nor writing it down on paper.
As a side example, Espen Kraft does demonstrate it is possible to be creative with adapting hardware to work together without needing specific input devices (such as electronic drum pads) to interact with drum brain component - https://youtu.be/Y8GOWf_DG-c?t=113
...by using "Bic Firth" brand drum stick pens as noted earlier by one of the commenters of the video clip. It is a drummer's type comedy sarcasm in tribute to actual brand name Vic Firth drum sticks which I always preferred and purchased. I miss the 1980s era when the sticks were better made back then.