MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / inputdevice_set_newest_used_device

Function inputdevice_set_newest_used_device

src/inputdevice.cpp:652–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

650}
651
652static void inputdevice_set_newest_used_device(int portnum, struct jport *jps)
653{
654 for (int i = 0; i < MAX_STORED_JPORTS; i++) {
655 struct stored_jport *jp = &stored_jports[portnum][i];
656 if (jp->inuse && &jp->jp == jps && !jp->defaultports) {
657 stored_jport_cnt++;
658 jp->age = stored_jport_cnt;
659 }
660 }
661}
662
663static void inputdevice_store_used_device(struct jport *jps, int portnum, bool defaultports)
664{

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected