pad-hid

command
v1.17.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2026 License: BSD-3-Clause Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command pad-hid is a development example (step 31.3) for the HID drivers of the gamepads: for each pad it shows the name, the kind, the battery, the touchpad fingers and the gyroscope and accelerometer, and it has buttons for the light bar, the motors and the motors of the triggers. A square turns with the gyroscope, so that the sensors can be seen working. It uses package internal/pads for the sensors and the touchpad, which 31.7 and 31.9 make public, so it is a development example.

Run it with a pad connected (PlayStation 4 or 5, Switch Pro, Xbox over Bluetooth); on Linux the user must be allowed to open /dev/hidraw* (docs/GUIDE.md has the udev rule), and GLUTTER_GAMEPAD_HID=0 reads the pads without the drivers:

go run ./examples/dev/pad-hid

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL