mirror of
https://github.com/shadowfacts/jinput-arm64.git
synced 2026-01-11 03:09:57 +01:00
Fixes for js devices that are read only
This commit is contained in:
parent
f95cb1ce41
commit
9a920ade6d
|
|
@ -45,6 +45,8 @@ public class LinuxEnvironmentPlugin extends ControllerEnvironment implements Plu
|
|||
} else {
|
||||
controllers = new Controller[0];
|
||||
}
|
||||
|
||||
System.out.println("Linux plugin claims to have found " + controllers.length + " controllers");
|
||||
}
|
||||
|
||||
/** Returns a list of all controllers available to this environment,
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ JoystickDevice::JoystickDevice(char *deviceFileName) {
|
|||
int i;
|
||||
|
||||
LOG_TRACE("Trying to open %s\n", deviceFileName);
|
||||
fd = open(deviceFileName, O_RDWR | O_NONBLOCK);
|
||||
fd = open(deviceFileName, O_RDONLY | O_NONBLOCK);
|
||||
/*if(fd<0) {
|
||||
char errorMessage[512];
|
||||
sprintf(errorMessage, "Error opening device %s\n", deviceFileName);
|
||||
|
|
|
|||
Loading…
Reference in a new issue