Then you just need to monitor the switch and when it changes, send a pulse to the game. It sounds like the LED should reflect the state of the toggle and you have that in place already.
Then you just need to monitor the switch and when it changes, send a pulse to the game. It sounds like the LED should reflect the state of the toggle and you have that in place already.