master ohmu/fastfetch-openbsd / src / detection / gamepad / gamepad.h
ohmu  ·  2026-10-15
 1#pragma once
 2
 3#include "fastfetch.h"
 4
 5typedef struct FFGamepadDevice {
 6    FFstrbuf serial;
 7    FFstrbuf name;
 8    uint8_t battery; // 0-100%
 9} FFGamepadDevice;
10
11const char* ffDetectGamepad(FFlist* devices /* List of FFGamepadDevice */);