From 529d5343d0f4e05a7d4eba452edfb36d3d23456d Mon Sep 17 00:00:00 2001 From: Raphael Assenat Date: Sat, 22 Aug 2015 00:45:46 -0400 Subject: [PATCH] Fix gamecube button storing --- gamecube.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamecube.c b/gamecube.c index c0a99f5..93d090a 100644 --- a/gamecube.c +++ b/gamecube.c @@ -92,7 +92,7 @@ void gc_decodeAnswer() */ last_built_report.pad_type = PAD_TYPE_GAMECUBE; - last_built_report.gc.buttons = gcn64_protocol_getByte(0) | gcn64_protocol_getByte(8); + last_built_report.gc.buttons = gcn64_protocol_getByte(0) | gcn64_protocol_getByte(8) << 8; x = gcn64_protocol_getByte(16); y = gcn64_protocol_getByte(24); cx = gcn64_protocol_getByte(32);