v0.2.0: For the Betterment of Dev-kind
This release has bug fixes, as per usual, alongside a few new (albeit) minor features, and an important change that may potentially break some device layouts.
Fixed
- Re-added using directive that's needed for actual Unity player builds.
- Got removed since it said it wasn't used anymore, but that doesn't take compile defines into account.
- Fixed HID usage check always failing for hidapi versions below v0.10.1.
- Fixed Linux shim device removals always being logged, even if the device wasn't actually removed.
- Fixed hidapi handles not being disposed immediately when failing to add devices to the input system.
- Fixed device read buffer size including the report ID prepend count.
Added
- Added device path to device open failure log (GH-2).
- Added additional logging for device change events for the
Linux
andHID
interfaces. - Added
HIDROGEN_KEEP_NATIVE_DEVICES
compile define to allow for keeping the native-backend versions of devices instead of removing them.- Not sure if anyone would actually want to use this, but it's there as an option just in case.
Changed
- Removed explicit newlines in most log messages, to keep things on a single line in log files.
- Device removal is now handled by queuing a removal event instead of removing the device itself immediately.
- I hoped this would allow them to show up as disconnected instead of just disappearing entirely, but it appears that's reserved for native devices only.
- The report ID byte is no longer enforced by default. The input system on Mac does not include the report ID in its HID support, so this was done to make it easier to account by only needing to include the report ID on Windows. A new
HIDROGEN_FORCE_REPORT_IDS
compile define is available if you wish to always have the report ID regardless.