1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2024-12-18 01:15:52 +01:00

patch/piuio: Bugfix, p1 input mapped also to p2

This commit is contained in:
icex2 2021-03-19 21:50:11 +01:00
parent 746c22a648
commit 8bb157c206

View File

@ -284,11 +284,11 @@ static void _patch_piuio_read_inputs_to_buffer(struct cnh_iobuf *buffer)
/* Player 2 */
buffer->bytes[2] = 0;
buffer->bytes[2] |= ((p1_pad_in.lu ? 1 : 0) << 0);
buffer->bytes[2] |= ((p1_pad_in.ru ? 1 : 0) << 1);
buffer->bytes[2] |= ((p1_pad_in.cn ? 1 : 0) << 2);
buffer->bytes[2] |= ((p1_pad_in.ld ? 1 : 0) << 3);
buffer->bytes[2] |= ((p1_pad_in.rd ? 1 : 0) << 4);
buffer->bytes[2] |= ((p2_pad_in.lu ? 1 : 0) << 0);
buffer->bytes[2] |= ((p2_pad_in.ru ? 1 : 0) << 1);
buffer->bytes[2] |= ((p2_pad_in.cn ? 1 : 0) << 2);
buffer->bytes[2] |= ((p2_pad_in.ld ? 1 : 0) << 3);
buffer->bytes[2] |= ((p2_pad_in.rd ? 1 : 0) << 4);
buffer->bytes[2] ^= 0xFF;