跳转至

lib/input/input_id_allocator.h

Classes

Name
struct __CFBD_DeviceIDGenerator

Types

Name
typedef struct __CFBD_DeviceIDGenerator CFBD_DeviceIDGenerator

Functions

Name
CFBD_DeviceIDGenerator * CFBD_CreateDeviceIDDefaultGenerator()
void CFBD_CreateDeviceIDCustomGenerator(CFBD_DeviceIDGenerator * gen, CFBDInputDeviceID_t(*)() get_next)

Types Documentation

typedef CFBD_DeviceIDGenerator

typedef struct __CFBD_DeviceIDGenerator CFBD_DeviceIDGenerator;

Functions Documentation

function CFBD_CreateDeviceIDDefaultGenerator

CFBD_DeviceIDGenerator * CFBD_CreateDeviceIDDefaultGenerator()

function CFBD_CreateDeviceIDCustomGenerator

void CFBD_CreateDeviceIDCustomGenerator(
    CFBD_DeviceIDGenerator * gen,
    CFBDInputDeviceID_t(*)() get_next
)

Source code

#pragma once
#include "input_device_base.h"
typedef struct __CFBD_DeviceIDGenerator
{
    CFBDInputDeviceID_t (*get_next)();
} CFBD_DeviceIDGenerator;

CFBD_DeviceIDGenerator* CFBD_CreateDeviceIDDefaultGenerator();
void CFBD_CreateDeviceIDCustomGenerator(CFBD_DeviceIDGenerator* gen,
                                        CFBDInputDeviceID_t (*get_next)());

Updated on 2026-02-03 at 13:21:55 +0000