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

Function sioConvertPadToPortAndSlot

pcsx2/SIO/Sio.cpp:36–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36std::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
46u32 sioConvertPortAndSlotToPad(u32 port, u32 slot)
47{

Callers 13

createWidgetsMethod · 0.85
updateListDescriptionMethod · 0.85
ControllerMacroWidgetMethod · 0.85
AddPadBindingsMethod · 0.85
FreezeMethod · 0.85
ConfigLogMethod · 0.85
ConfigLogMethod · 0.85
ConfigLogMethod · 0.85
ConfigLogMethod · 0.85
SetMethod · 0.85
ConfigLogMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected