Related to the lego mindstorms thing, this is how I first did programming, at the university of nsw in sydney when i was 10ish https://www.usenix.org/legacy/event/usenix2000/freenix/nikander/nikander.pdf
one thing I remember is that if you put the sensors into raw mode, you could distinguish pretty accurately between multiple touch sensors on the same input based on their slightly different resistances. so you'd do this https://lejos.sourceforge.io/rcx/tutorial/essential/hardware/sensors.html then piggyback two touch sensors, say left and right, on the same input, then you could measure the values for each sensor and plug in some hard coded thresholds to save a precious input slot (there's only three).
@pervognsen @dotstdy we had this stuff instead, it was awesome (there was also an East German Lego clone with universal plastic bricks, but for building 'machinery' the metal kits were much better)
@floooh @pervognsen Yeah I had a meccano set which was generally more interesting than lego, I didn't really have very much lego technic or any mindstorms stuff at home because it was expensive, so I only got to use it at school.