| 34 | } |
| 35 | |
| 36 | std::tuple<u32, u32> sioConvertPadToPortAndSlot(u32 index) |
| 37 | { |
| 38 | if (index > 4) // [5,6,7] |
| 39 | return std::make_tuple(1, index - 4); // 2B,2C,2D |
| 40 | else if (index > 1) // [2,3,4] |
| 41 | return std::make_tuple(0, index - 1); // 1B,1C,1D |
| 42 | else // [0,1] |
| 43 | return std::make_tuple(index, 0); // 1A,2A |
| 44 | } |
| 45 | |
| 46 | u32 sioConvertPortAndSlotToPad(u32 port, u32 slot) |
| 47 | { |
no outgoing calls
no test coverage detected