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

Function clearkbrevent

src/inputdevice.cpp:7304–7318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7302 }
7303}
7304static void clearkbrevent (struct uae_input_device *uid, int evt)
7305{
7306 for (int i = 0; i < MAX_INPUT_DEVICE_EVENTS; i++) {
7307 for (int j = 0; j < MAX_INPUT_SUB_EVENT; j++) {
7308 if (uid->eventid[i][j] == evt) {
7309 uid->eventid[i][j] = 0;
7310 uid->flags[i][j] &= COMPA_RESERVED_FLAGS;
7311 xfree (uid->custom[i][j]);
7312 uid->custom[i][j] = NULL;
7313 if (j == 0)
7314 set_kbr_default_event (uid, keyboard_default, i);
7315 }
7316 }
7317 }
7318}
7319
7320static void resetjport (struct uae_prefs *prefs, int index)
7321{

Callers 2

resetjportFunction · 0.85
remove_compa_configFunction · 0.85

Calls 1

set_kbr_default_eventFunction · 0.85

Tested by

no test coverage detected