Module for interfacing with HyperX Cloud Flight Wireless
Supports Windows 10 x64 and Linux following the instructions.
Current functionality:
- Power state
- Microphone state
- Volume state
- Charging state
- Battery percentage
$ npm install srn/hyperx-cloud-flight-wirelessconst hyperxCloudFlight = require('hyperx-cloud-flight-wireless')()
hyperxCloudFlight.on('power', state) // 'on' | 'off'
hyperxCloudFlight.on('muted', muted) // Boolean
hyperxCloudFlight.on('volume', direction) // 'up' | 'down'
hyperxCloudFlight.on('charging', charging) // Boolean
hyperxCloudFlight.on('battery', percentage) // 0-100 | null
hyperxCloudFlight.on('error', error) // instanceof ErrorThe battery percentage is only an estimate based on the "status" report.
To work with linux it is necessary to run as root, or define rules for udev.
echo 'KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="plugdev"' | sudo tee -a /etc/udev/rules.d/99-hidraw-permissions.rules && sudo udevadm control --reload-rules
disconnect and reconnect the device
MIT © Søren Brokær