ATMEL: Macro to link board with mouse event

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

# Macro to link board with mouse event

## Defines

#define | Is_mouse_left_event() Is_joy_left()
#define | Is_mouse_right_event() Is_joy_right()
#define | Is_mouse_up_event() Is_joy_up()
#define | Is_mouse_down_event() Is_joy_down()
#define | SCROLL_STEP 10
#define | Is_mouse_scroll_up_event() ((g_u16_pos_scroll+SCROLL_STEP) < Get_adc_pot_val())
#define | Is_mouse_scroll_down_event() ((g_u16_pos_scroll-SCROLL_STEP) > Get_adc_pot_val())
#define | Is_mouse_click_left_event() Is_btn_left()
#define | Is_mouse_click_middle_event() FALSE
#define | Is_mouse_click_right_event() Is_btn_middle()

## Define Documentation

#define Is_mouse_left_event | ( |  | ) | Is_joy_left()

Definition at line 80 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_right_event | ( |  | ) | Is_joy_right()

Definition at line 81 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_up_event | ( |  | ) | Is_joy_up()

Definition at line 82 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_down_event | ( |  | ) | Is_joy_down()

Definition at line 83 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define SCROLL_STEP 10

Definition at line 85 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_scroll_up_event | ( |  | ) | ((g_u16_pos_scroll+SCROLL_STEP) < Get_adc_pot_val())

Definition at line 86 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_scroll_down_event | ( |  | ) | ((g_u16_pos_scroll-SCROLL_STEP) > Get_adc_pot_val())

Definition at line 87 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_click_left_event | ( |  | ) | Is_btn_left()

Definition at line 89 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_click_middle_event | ( |  | ) | FALSE

Definition at line 90 of file device_mouse_task.c.

Referenced by is_device_mouse_event().

#define Is_mouse_click_right_event | ( |  | ) | Is_btn_middle()

Definition at line 91 of file device_mouse_task.c.

Referenced by is_device_mouse_event().