MCPcopy Create free account
hub / github.com/Santroller/Santroller / load_state

Method load_state

lib/psx_controller/psx_controller.cpp:123–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 cancel_alarm(timeout_alarm_id);
122}
123void PSXController::load_state(PSXController* state) {
124 type = state->type;
125 valid = state->valid;
126 hasTapBar = state->hasTapBar;
127 missing = state->missing;
128 last = state->last;
129 lastInit = state->lastInit;
130 invalidCount = state->invalidCount;
131 memcpy(ps2Data, state->ps2Data, sizeof(ps2Data));
132 memcpy(lastInputs, state->lastInputs, sizeof(lastInputs));
133 ps2DataOut = state->ps2DataOut;
134 ps2Idx = state->ps2Idx;
135 ps2Len = state->ps2Len;
136 ps2DataLen = state->ps2DataLen;
137 done = state->done;
138 packet_delay = state->packet_delay;
139}
140PSXController::~PSXController() {
141 printf("~PSXController\r\n");
142}

Callers

nothing calls this directly

Calls 1

memcpyFunction · 0.85

Tested by

no test coverage detected