Kaleidoscope
Classes | Macros
AbsoluteMouseAPI.h File Reference
#include <Arduino.h>
#include "PluggableUSB.h"
#include "HID.h"
#include "HID-Settings.h"
#include "MouseButtons.h"
#include "DescriptorPrimitives.h"
#include "AbsoluteMouseAPI.hpp"
Include dependency graph for AbsoluteMouseAPI.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

union  HID_MouseAbsoluteReport_Data_t
 
class  AbsoluteMouseAPI
 

Macros

#define DESCRIPTOR_ABS_MOUSE_BUTTONS
 
#define DESCRIPTOR_ABS_MOUSE_XY
 
#define DESCRIPTOR_ABS_MOUSE_WHEEL
 

Macro Definition Documentation

◆ DESCRIPTOR_ABS_MOUSE_BUTTONS

#define DESCRIPTOR_ABS_MOUSE_BUTTONS
Value:
/* 8 Buttons */ \
D_USAGE_PAGE, D_PAGE_BUTTON, /* USAGE_PAGE (Button) */ \
D_USAGE_MINIMUM, 0x01, /* USAGE_MINIMUM (Button 1) */ \
D_USAGE_MAXIMUM, 0x08, /* USAGE_MAXIMUM (Button 8) */ \
D_LOGICAL_MINIMUM, 0x00, /* LOGICAL_MINIMUM (0) */ \
D_LOGICAL_MAXIMUM, 0x01, /* LOGICAL_MAXIMUM (1) */ \
D_REPORT_COUNT, 0x08, /* REPORT_COUNT (8) */ \
D_REPORT_SIZE, 0x01, /* REPORT_SIZE (1) */ \
#define D_DATA
Definition: DescriptorPrimitives.h:33
#define D_PAGE_BUTTON
Definition: DescriptorPrimitives.h:85
#define D_VARIABLE
Definition: DescriptorPrimitives.h:37
#define D_ABSOLUTE
Definition: DescriptorPrimitives.h:39

◆ DESCRIPTOR_ABS_MOUSE_WHEEL

#define DESCRIPTOR_ABS_MOUSE_WHEEL
Value:
/* Wheel */ \
D_USAGE, 0x38, /* USAGE (Wheel) */ \
D_LOGICAL_MINIMUM, 0x81, /* LOGICAL_MINIMUM (-127) */ \
D_LOGICAL_MAXIMUM, 0x7f, /* LOGICAL_MAXIMUM (127) */ \
D_REPORT_SIZE, 0x08, /* REPORT_SIZE (8) */ \
D_REPORT_COUNT, 0x01, /* REPORT_COUNT (1) */ \
#define D_DATA
Definition: DescriptorPrimitives.h:33
#define D_VARIABLE
Definition: DescriptorPrimitives.h:37
#define D_RELATIVE
Definition: DescriptorPrimitives.h:40

◆ DESCRIPTOR_ABS_MOUSE_XY

#define DESCRIPTOR_ABS_MOUSE_XY
Value:
/* X, Y */ \
D_USAGE_PAGE, D_PAGE_GENERIC_DESKTOP, /* USAGE_PAGE (Generic Desktop) */ \
D_USAGE, 0x30, /* USAGE (X) */ \
D_USAGE, 0x31, /* USAGE (Y) */ \
D_MULTIBYTE(D_LOGICAL_MINIMUM), 0x00, 0x00, /* Logical Minimum (0) */ \
D_MULTIBYTE(D_LOGICAL_MAXIMUM), 0xFF, 0x7f, /* Logical Maximum (32767) */ \
D_REPORT_SIZE, 0x10, /* Report Size (16), */ \
D_REPORT_COUNT, 0x02, /* Report Count (2), */ \
D_INPUT, (D_DATA|D_VARIABLE|D_ABSOLUTE), /* Input (Data, Variable, Absolute) */
#define D_LOGICAL_MAXIMUM
Definition: DescriptorPrimitives.h:15
#define D_PAGE_GENERIC_DESKTOP
Definition: DescriptorPrimitives.h:77
#define D_DATA
Definition: DescriptorPrimitives.h:33
#define D_LOGICAL_MINIMUM
Definition: DescriptorPrimitives.h:14
#define D_VARIABLE
Definition: DescriptorPrimitives.h:37
#define D_ABSOLUTE
Definition: DescriptorPrimitives.h:39