Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clementgallet/libTAS
/ get_ev_number
Function
get_ev_number
src/library/inputs/evdev.cpp:140–146 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
138
}
139
140
int get_ev_number(int fd)
141
{
142
for (int i=0; i<AllInputsFlat::MAXJOYS; i++)
143
if (evdevfds[i].second != 0 && evdevfds[i].first.first == fd)
144
return i;
145
return -1;
146
}
147
148
bool unref_evdev(int fd)
149
{
Callers
1
ioctl
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected