#include "config.h"
Ir al código fuente de este archivo.
Definiciones | |
#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_reset() (g_hid_mouse_report[1]=0,g_hid_mouse_report[2]=0) |
#define | Is_mouse_left_event() ((PINB & (1<<PINB6)) ? FALSE : TRUE) |
#define | Is_mouse_right_event() ((PINE & (1<<PINE4)) ? FALSE : TRUE) |
#define | Is_mouse_up_event() ((PINB & (1<<PINB7)) ? FALSE : TRUE) |
#define | Is_mouse_down_event() ((PINE & (1<<PINE5)) ? FALSE : TRUE) |
#define | Joy_init() (DDRB &= ~((1<<PINB7)|(1<<PINB6)), PORTB |= ((1<<PINB7)|(1<<PINB6)), DDRE &= ~((1<<PINE5)|(1<<PINE4)), PORTE |= ((1<<PINE5)|(1<<PINE4))) |
Funciones | |
void | Mouse_Inicializar (void) |
bit | is_mouse_event (void) |
Variables | |
U8 | g_hid_mouse_report [4] |
#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_reset | ( | ) | (g_hid_mouse_report[1]=0,g_hid_mouse_report[2]=0) |
#define Hid_mouse_report_right | ( | ) | (g_hid_mouse_report[1]+=MOUSE_SPEED) |
#define Hid_mouse_report_up | ( | ) | (g_hid_mouse_report[2]-=MOUSE_SPEED) |
#define Is_mouse_down_event | ( | ) | ((PINE & (1<<PINE5)) ? FALSE : TRUE) |
#define Is_mouse_left_event | ( | ) | ((PINB & (1<<PINB6)) ? FALSE : TRUE) |
#define Is_mouse_right_event | ( | ) | ((PINE & (1<<PINE4)) ? FALSE : TRUE) |
#define Is_mouse_up_event | ( | ) | ((PINB & (1<<PINB7)) ? FALSE : TRUE) |
#define Joy_init | ( | ) | (DDRB &= ~((1<<PINB7)|(1<<PINB6)), PORTB |= ((1<<PINB7)|(1<<PINB6)), DDRE &= ~((1<<PINE5)|(1<<PINE4)), PORTE |= ((1<<PINE5)|(1<<PINE4))) |
bit is_mouse_event | ( | void | ) |
void Mouse_Inicializar | ( | void | ) |
Used to store the HID mouse report.