summaryrefslogtreecommitdiffstats
path: root/src/detection/gamepad/gamepad.h
blob: f26def9ca46ea204eecfbf85ba5d9c15bb901364 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#pragma once

#include "fastfetch.h"

typedef struct FFGamepadDevice {
    FFstrbuf serial;
    FFstrbuf name;
    uint8_t battery; // 0-100%
} FFGamepadDevice;

const char* ffDetectGamepad(FFlist* devices /* List of FFGamepadDevice */);