void wayplay_1_write(unsigned char data, unsigned char mask) { if (pad_index < 4) { gamepad_write(pad_index, data, mask); } }
void gamepad_2_write(unsigned char data, unsigned char mask) { gamepad_write(4, data, mask); }
void wayplay_1_write(unsigned char data, unsigned char mask) { /* TR & TL on port B select controller # (0-3) */ gamepad_write(latch & 0x03, data, mask); }