MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ButtonQuery

Method ButtonQuery

pcsx2/SIO/Pad/PadPopn.cpp:81–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79}
80
81u8 PadPopn::ButtonQuery(u8 commandByte)
82{
83 switch (this->currentMode)
84 {
85 case Pad::Mode::DUALSHOCK2:
86 case Pad::Mode::ANALOG:
87 switch (commandBytesReceived)
88 {
89 case 3:
90 case 4:
91 return 0xff;
92 case 5:
93 return 0x03;
94 case 8:
95 g_Sio0.SetAcknowledge(false);
96 return 0x5a;
97 default:
98 return 0x00;
99 }
100 default:
101 switch (commandBytesReceived)
102 {
103 case 8:
104 g_Sio0.SetAcknowledge(false);
105 return 0x00;
106 default:
107 return 0x00;
108 }
109 }
110}
111
112u8 PadPopn::Poll(u8 commandByte)
113{

Callers

nothing calls this directly

Calls 1

SetAcknowledgeMethod · 0.80

Tested by

no test coverage detected