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

Function get_uid

src/inputdevice.cpp:8950–8963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8948}
8949
8950static struct uae_input_device *get_uid (const struct inputdevice_functions *id, int devnum)
8951{
8952 struct uae_input_device *uid = 0;
8953 if (id == &idev[IDTYPE_JOYSTICK]) {
8954 uid = &joysticks[devnum];
8955 } else if (id == &idev[IDTYPE_MOUSE]) {
8956 uid = &mice[devnum];
8957 } else if (id == &idev[IDTYPE_KEYBOARD]) {
8958 uid = &keyboards[devnum];
8959 } else if (id == &idev[IDTYPE_INTERNALEVENT]) {
8960 uid = &internalevents[devnum];
8961 }
8962 return uid;
8963}
8964
8965static int get_event_data (const struct inputdevice_functions *id, int devnum, int num, int *eventid, TCHAR **custom, uae_u64 *flags, int *port, int sub)
8966{

Callers 8

get_event_dataFunction · 0.85
put_event_dataFunction · 0.85
is_event_usedFunction · 0.85
inputdevice_get_mappingFunction · 0.85
inputdevice_set_mappingFunction · 0.85
inputdevice_swap_portsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected