Skip to content

v1.9.0

Choose a tag to compare

@HeyOkay HeyOkay released this 25 Sep 07:56
· 235 commits to main since this release

Added

  • Xbox-compatible controllers, tested with the GameSir G7 Pro on its 2.4 GHz receiver.
    The battery is read through Windows.Gaming.Input (the API the Xbox Accessories app
    uses): an exact percentage and the charging state. XInput is used as a fallback;
    it only reports four levels, so the tooltip then shows an approximate value
    such as "about 55% (medium)".
  • Gamepad pictogram: an Xbox controller silhouette with symmetric sticks.
  • A controller's icon appears within a few seconds of switching it on and
    disappears within a few seconds of switching it off. Until Windows reports the
    battery, the icon is shown without an arc ("connected, battery level not reported yet").
  • Automatic release builds: pushing a v* tag builds HaloBattery.exe on GitHub
    Actions and attaches it to the release. "Run workflow" builds it without releasing.
  • The .exe has its own icon (a green ring on a dark disc), also used by build_exe.bat.

Changed

  • Devices that are switched off no longer stay in the tray as grey icons:
    • a Razer headset that is off while its receiver stays plugged in is hidden after
      two failed polls in a row;
    • a silent WLmouse keeps its greyed-out last level for 5 minutes (the receiver
      cannot tell a switched-off mouse from one that fell asleep) and is then hidden.
      Both come back as soon as the device answers again.
  • The low battery notification says "battery is low" for devices that only report
    approximate levels, instead of an invented percentage.
  • README: the supported devices table lists only hardware tested for real, and
    installation starts with the ready-made .exe.

Fixed

  • --probe no longer crashes on a cp1252 console when a device name contains
    non-ASCII characters.