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

Function clearevent

src/inputdevice.cpp:7291–7303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7289}
7290
7291static void clearevent (struct uae_input_device *uid, int evt)
7292{
7293 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
7294 for (int j = 0; j < MAX_INPUT_SUB_EVENT; j++) {
7295 if (uid->eventid[i][j] == evt) {
7296 uid->eventid[i][j] = 0;
7297 uid->flags[i][j] &= COMPA_RESERVED_FLAGS;
7298 xfree (uid->custom[i][j]);
7299 uid->custom[i][j] = NULL;
7300 }
7301 }
7302 }
7303}
7304static void clearkbrevent (struct uae_input_device *uid, int evt)
7305{
7306 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {

Callers 2

resetjportFunction · 0.85
remove_compa_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected