The mapping file currently needs to be located on the classpath for Jamepad to be able to read it. We have a case where users want to add their own custom controllers and want to extend the database with additional entries in runtime.
This small change will allow reading from local files on the system. Also makes sure to close the file stream when it is completed reading.
The mapping file currently needs to be located on the classpath for Jamepad to be able to read it. We have a case where users want to add their own custom controllers and want to extend the database with additional entries in runtime.
This small change will allow reading from local files on the system. Also makes sure to close the file stream when it is completed reading.