ATMEL: Macro to fill mouse report array

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# Macro to fill mouse report array

## Defines

#define | Hid_mouse_report_up() (g_hid_mouse_report[2]-=MOUSE_SPEED)
#define | Hid_mouse_report_down() (g_hid_mouse_report[2]+=MOUSE_SPEED)
#define | Hid_mouse_report_left() (g_hid_mouse_report[1]-=MOUSE_SPEED)
#define | Hid_mouse_report_right() (g_hid_mouse_report[1]+=MOUSE_SPEED)
#define | Hid_mouse_report_scroll_up() (g_hid_mouse_report[3]+=MOUSE_SPEED)
#define | Hid_mouse_report_scroll_down() (g_hid_mouse_report[3]-=MOUSE_SPEED)
#define | Hid_mouse_report_click_left() (g_hid_mouse_report[0] |= 0x01)
#define | Hid_mouse_report_click_right() (g_hid_mouse_report[0] |= 0x02)
#define | Hid_mouse_report_click_middle() (g_hid_mouse_report[0] |= 0x04)
#define | Hid_mouse_report_reset() (g_hid_mouse_report[0]=0,g_hid_mouse_report[1]=0,g_hid_mouse_report[2]=0,g_hid_mouse_report[3]=0)

## Define Documentation

#define Hid_mouse_report_up | ( |  | ) | (g_hid_mouse_report[2]-=MOUSE_SPEED)

Definition at line 62 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_down | ( |  | ) | (g_hid_mouse_report[2]+=MOUSE_SPEED)

Definition at line 63 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_left | ( |  | ) | (g_hid_mouse_report[1]-=MOUSE_SPEED)

Definition at line 64 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_right | ( |  | ) | (g_hid_mouse_report[1]+=MOUSE_SPEED)

Definition at line 65 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_scroll_up | ( |  | ) | (g_hid_mouse_report[3]+=MOUSE_SPEED)

Definition at line 67 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_scroll_down | ( |  | ) | (g_hid_mouse_report[3]-=MOUSE_SPEED)

Definition at line 68 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_click_left | ( |  | ) | (g_hid_mouse_report[0] |= 0x01)

Definition at line 70 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_click_right | ( |  | ) | (g_hid_mouse_report[0] |= 0x02)

Definition at line 71 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_click_middle | ( |  | ) | (g_hid_mouse_report[0] |= 0x04)

Definition at line 72 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Hid_mouse_report_reset | ( |  | ) | (g_hid_mouse_report[0]=0,g_hid_mouse_report[1]=0,g_hid_mouse_report[2]=0,g_hid_mouse_report[3]=0)

Definition at line 75 of file device_mouse_task.c.

Referenced by device_mouse_task_by_IT(), and is_device_mouse_event().