MCPcopy Create free account
hub / github.com/clementgallet/libTAS / get_js_number

Function get_js_number

src/library/inputs/jsdev.cpp:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153int get_js_number(int fd)
154{
155 for (int i=0; i<AllInputsFlat::MAXJOYS; i++)
156 if (jsdevfds[i].second != 0 && jsdevfds[i].first.first == fd)
157 return i;
158 return -1;
159}
160
161bool unref_jsdev(int fd)
162{

Callers 1

ioctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected