libgdx / Jamepad

A better way to use gamepads in Java
Apache License 2.0
19 stars 11 forks source link

Allow loading mappings from local file path #24

Closed breiler closed 10 months ago

breiler commented 10 months ago

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.