mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-02-16 02:20:42 +00:00
Use absolute path for inputs
This commit is contained in:
@@ -49,12 +49,15 @@ public class Limelight implements NvConnectionListener {
|
||||
|
||||
if (inputs.isEmpty()) {
|
||||
File input = new File("/dev/input");
|
||||
inputs.addAll(Arrays.asList(input.list(new FilenameFilter() {
|
||||
String[] events = input.list(new FilenameFilter() {
|
||||
@Override
|
||||
public boolean accept(File dir, String name) {
|
||||
return name.startsWith("event");
|
||||
}
|
||||
})));
|
||||
});
|
||||
|
||||
for (String event:events)
|
||||
inputs.add(new File(input, event).getAbsolutePath());
|
||||
}
|
||||
|
||||
for (String input:inputs) {
|
||||
|
||||
Reference in New Issue
Block a user