| 79 | } |
| 80 | |
| 81 | u8 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 | |
| 112 | u8 PadPopn::Poll(u8 commandByte) |
| 113 | { |
nothing calls this directly
no test coverage detected