Skip to content

v0.2.0: For the Betterment of Dev-kind

Compare
Choose a tag to compare
@TheNathannator TheNathannator released this 01 May 13:43
· 82 commits to main since this release
73285a0

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 and HID 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.