跳转至

lib/input/input_event.h

Classes

Name
struct __CFBDInputEvent

Types

Name
typedef uint32_t CFBDInputDeviceEventType_t
typedef struct __CFBDInputEventContext CFBDInputEventContext
typedef struct __CFBDInputEvent CFBDInputEvent

Functions

Name
void CFBD_CreateEvent(CFBDInputEvent * event, CFBDInputDeviceBase * baseDevic, CFBDInputDeviceEventType_t eventType)
void CFBD_SetEventStopHandled(CFBDInputEvent * event)

Defines

Name
CFBDInputDeviceEventType_INVALID_ID
CFBDInputDeviceEventType_SYSDEF_START
CFBDInputDeviceEventType_USER_START

Types Documentation

typedef CFBDInputDeviceEventType_t

typedef uint32_t CFBDInputDeviceEventType_t;

typedef CFBDInputEventContext

typedef struct __CFBDInputEventContext CFBDInputEventContext;

typedef CFBDInputEvent

typedef struct __CFBDInputEvent CFBDInputEvent;

Functions Documentation

function CFBD_CreateEvent

void CFBD_CreateEvent(
    CFBDInputEvent * event,
    CFBDInputDeviceBase * baseDevic,
    CFBDInputDeviceEventType_t eventType
)

function CFBD_SetEventStopHandled

static inline void CFBD_SetEventStopHandled(
    CFBDInputEvent * event
)

Macros Documentation

define CFBDInputDeviceEventType_INVALID_ID

#define CFBDInputDeviceEventType_INVALID_ID (0)

define CFBDInputDeviceEventType_SYSDEF_START

#define CFBDInputDeviceEventType_SYSDEF_START (CFBDInputDeviceEventType_INVALID_ID + 1)

define CFBDInputDeviceEventType_USER_START

#define CFBDInputDeviceEventType_USER_START (0x100)

Source code

#pragma once
#include "cfbd_define.h"
#include "input_device_base.h"

typedef uint32_t CFBDInputDeviceEventType_t;
typedef struct __CFBDInputEventContext CFBDInputEventContext;

#define CFBDInputDeviceEventType_INVALID_ID (0)
#define CFBDInputDeviceEventType_SYSDEF_START (CFBDInputDeviceEventType_INVALID_ID + 1)
#define CFBDInputDeviceEventType_USER_START (0x100)

typedef struct __CFBDInputEvent
{
    CFBDInputDeviceEventType_t event_indicates; // what events?
    CFBDInputDeviceID_t device_id;              // what device?
    void* event_private_data;                   // event_datas
    CFBD_Bool stop_propergate;                  // should stop propergate?
} CFBDInputEvent; // OK, Events here contains what where are the session from

void CFBD_CreateEvent(CFBDInputEvent* event,
                      CFBDInputDeviceBase* baseDevic,
                      CFBDInputDeviceEventType_t eventType);

static inline void CFBD_SetEventStopHandled(CFBDInputEvent* event)
{
    event->stop_propergate = CFBD_TRUE;
}

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