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

Function inputdevice_get_device_status

src/inputdevice.cpp:9123–9130  ·  view source on GitHub ↗

returns state (enabled/disabled) */

Source from the content-addressed store, hash-verified

9121}
9122/* returns state (enabled/disabled) */
9123int inputdevice_get_device_status (int devnum)
9124{
9125 const struct inputdevice_functions *idf = getidf (devnum);
9126 if (idf == NULL)
9127 return -1;
9128 struct uae_input_device *uid = get_uid (idf, inputdevice_get_device_index (devnum));
9129 return uid->enabled != 0;
9130}
9131
9132/* set state (enabled/disabled) */
9133void inputdevice_set_device_status (int devnum, int enabled)

Callers 1

Calls 3

getidfFunction · 0.85
get_uidFunction · 0.85

Tested by

no test coverage detected