I have joystick (Logitech Attack 3) and i want to change the mainboard with something with RF and pic uC. In the joystick i have two more boards that have buttons, each button is in series with a diode. I can't see where the traces on the main board goes so i'm asking why are there those diodes. My guess is that at the end of each switch is a pull up resistor and the diode is used te maintain the number of pins per connector low. Here's the circuit.