00001 #ifndef __MOUSE_H__ 00002 #define __MOUSE_H__ 00003 00004 /**********************************************************/ 00005 /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/ 00006 /* 00007 Copyright: 1995 - Grupo de Voz (DAET) ETSII/IT-Bilbao 00008 00009 Nombre fuente................ MOUSE.H 00010 Nombre paquete............... - 00011 Lenguaje fuente.............. C (Borland C/C++ 3.1) 00012 Estado....................... Completado 00013 Dependencia Hard/OS.......... - 00014 Codigo condicional........... - 00015 00016 Codificacion................. Borja Etxebarria 00017 00018 Version dd/mm/aa Autor Proposito de la edicion 00019 ------- -------- -------- ----------------------- 00020 0.0.0 16/08/96 Borja Codificacion inicial. 00021 00022 ======================== Contenido ======================== 00023 Manejo del raton 00024 =========================================================== 00025 */ 00026 /*/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\*/ 00027 /**********************************************************/ 00028 00029 #include "tdef.h" 00030 00031 #define MOUSESOFT 00032 00033 /**********************************************************/ 00034 00035 #define MOUSE_NOKEY 0 00036 #define MOUSE_LEFTKEY 1 00037 #define MOUSE_RIGHTKEY 2 00038 #define MOUSE_BOTHKEY 3 00039 00040 /**********************************************************/ 00041 00042 typedef struct { 00043 UINT16 mask[2][16]; 00044 INT16 horz_hot_spot, vert_hot_spot; 00045 } mouse_cursor; 00046 00047 /**********************************************************/ 00048 00049 #ifdef __cplusplus 00050 extern "C" { 00051 #endif 00052 00053 /**********************************************************/ 00054 00055 BOOL mouse_open( VOID ); 00056 VOID mouse_close( VOID ); 00057 00058 VOID mouse_show( VOID ); 00059 VOID mouse_hide( VOID ); 00060 00061 VOID mouse_set_icon( mouse_cursor * mc ); 00062 VOID mouse_set_xrange( INT16 x0, INT16 x1 ); 00063 VOID mouse_set_yrange( INT16 y0, INT16 y1 ); 00064 VOID mouse_set_scale( INT16 xratio, INT16 yratio ); 00065 VOID mouse_set_xy( INT16 x, INT16 y ); 00066 00067 UINT16 mouse_get( INT16* x, INT16* y ); 00068 00069 /* #ifdef MOUSESOFT */ 00070 VOID mouse_update(VOID); 00071 VOID mouse_set_showfunc( VOID (*mfunc)(BOOL show, INT16 x, INT16 y) ); 00072 /* #endif */ 00073 00074 /**********************************************************/ 00075 00076 #ifdef __cplusplus 00077 } /* extern "C" */ 00078 #endif 00079 00080 /**********************************************************/ 00081 00082 #endif