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

Function inputdevice_sparecopy

src/inputdevice.cpp:7175–7193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7173}
7174
7175void inputdevice_sparecopy (struct uae_input_device *uid, int num, int sub)
7176{
7177 if (uid->port[num][SPARE_SUB_EVENT] != 0)
7178 return;
7179 if (uid->eventid[num][sub] <= 0 && uid->custom[num][sub] == NULL) {
7180 uid->eventid[num][SPARE_SUB_EVENT] = 0;
7181 uid->flags[num][SPARE_SUB_EVENT] = 0;
7182 uid->port[num][SPARE_SUB_EVENT] = 0;
7183 xfree (uid->custom[num][SPARE_SUB_EVENT]);
7184 uid->custom[num][SPARE_SUB_EVENT] = NULL;
7185 } else {
7186 uid->eventid[num][SPARE_SUB_EVENT] = uid->eventid[num][sub];
7187 uid->flags[num][SPARE_SUB_EVENT] = uid->flags[num][sub];
7188 uid->port[num][SPARE_SUB_EVENT] = MAX_JPORTS + 1;
7189 xfree (uid->custom[num][SPARE_SUB_EVENT]);
7190 uid->custom[num][SPARE_SUB_EVENT] = uid->custom[num][sub];
7191 uid->custom[num][sub] = NULL;
7192 }
7193}
7194
7195static void setcompakb (struct uae_prefs *p, int *kb, const int *srcmap, int index, int af)
7196{

Callers 3

setcompakbeventFunction · 0.85
cleardevFunction · 0.85
setidFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected