Fix gamecube button storing

This commit is contained in:
Raphael Assenat 2015-08-22 00:45:46 -04:00
parent a1a2c4ba68
commit 529d5343d0
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ void gc_decodeAnswer()
*/ */
last_built_report.pad_type = PAD_TYPE_GAMECUBE; 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); x = gcn64_protocol_getByte(16);
y = gcn64_protocol_getByte(24); y = gcn64_protocol_getByte(24);
cx = gcn64_protocol_getByte(32); cx = gcn64_protocol_getByte(32);