toaruos/base/usr/include/kernel/mouse.h

23 lines
349 B
C
Raw Normal View History

2018-03-16 15:56:19 +03:00
#pragma once
2021-05-31 04:47:02 +03:00
#include <stdint.h>
2018-03-16 15:56:19 +03:00
typedef enum {
LEFT_CLICK = 0x01,
RIGHT_CLICK = 0x02,
MIDDLE_CLICK = 0x04,
MOUSE_SCROLL_UP = 0x10,
MOUSE_SCROLL_DOWN = 0x20,
} mouse_click_t;
typedef struct {
uint32_t magic;
int32_t x_difference;
int32_t y_difference;
mouse_click_t buttons;
} mouse_device_packet_t;
#define MOUSE_MAGIC 0xFEED1234