mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 00:26: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()) {
|
if (inputs.isEmpty()) {
|
||||||
File input = new File("/dev/input");
|
File input = new File("/dev/input");
|
||||||
inputs.addAll(Arrays.asList(input.list(new FilenameFilter() {
|
String[] events = input.list(new FilenameFilter() {
|
||||||
@Override
|
@Override
|
||||||
public boolean accept(File dir, String name) {
|
public boolean accept(File dir, String name) {
|
||||||
return name.startsWith("event");
|
return name.startsWith("event");
|
||||||
}
|
}
|
||||||
})));
|
});
|
||||||
|
|
||||||
|
for (String event:events)
|
||||||
|
inputs.add(new File(input, event).getAbsolutePath());
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String input:inputs) {
|
for (String input:inputs) {
|
||||||
|
|||||||
Reference in New Issue
Block a user