// -------------------------------------------------------------------- // Copyright (c) 2007 by Terasic Technologies Inc. // -------------------------------------------------------------------- // // Permission: // // Terasic grants permission to use and modify this code for use // in synthesis for all Terasic Development Boards and Altera Development // Kits made by Terasic. Other use of this code, including the selling // ,duplication, or modification of any portion is strictly prohibited. // // Disclaimer: // // This VHDL/Verilog or C/C++ source code is intended as a design reference // which illustrates how these types of functions can be implemented. // It is the user's responsibility to verify their design for // consistency and functionality through the use of formal // verification methods. Terasic provides no warranty regarding the use // or functionality of this code. // // -------------------------------------------------------------------- // // Terasic Technologies Inc // 356 Fu-Shin E. Rd Sec. 1. JhuBei City, // HsinChu County, Taiwan // 302 // // web: http://www.terasic.com/ // email: support@terasic.com // // -------------------------------------------------------------------- #ifndef USB_MOUSE_H_ #define USB_MOUSE_H_ #include "usb_class.h" #define LEFT_BUTTON_PRESSED 0x01 #define RIGHT_BUTTON_PRESSED 0x02 #define MIDDLE_BUTTON_PRESSED 0x04 typedef void *USBMS_HANDLE; USBMS_HANDLE USBMS_Open(HUB_HANDLE hHub, alt_u8 Port, USB_SPEED Speed, alt_u8 AssignedAddress); void USBMS_Close(USBMS_HANDLE hMouse); bool USBMS_GetStatus(USBMS_HANDLE hMouse, int *px, int *py, int *pstatus); //void USB_MouseOpen(HUB_HANDLE hHub, alt_u8 Port, USB_SPEED Speed, alt_u8 AssignedAddress); #endif /*USB_MOUSE_H_*/