Newer
Older
honey-os / src / userland / hid / hid.h
@biosfood biosfood on 2 Aug 2023 275 bytes hid: create dedicated header file
#ifndef HID_H
#define HID_H

#include <hlib.h>

typedef struct {
    uint32_t serviceId;
    uint32_t deviceId;
    uint32_t normalFunction;
    void *buffer;
} HIDDevice;

typedef struct {
    uint8_t buttons;
    int8_t x, y;
} __attribute__((packed)) MouseReport;

#endif