Category : C Source Code
Archive   : INTRLIB1.ZIP
Filename : MOUSEDRV.H

 
Output of file : MOUSEDRV.H contained in archive : INTRLIB1.ZIP
/**************************************************************************
* This is the function prototype declaration for the mousedrv module: *
* *
* W A R N I N G : This module assumes mouse driver was installed using *
* one of the following program: mouse.com or mouse.sys. *
* *
* This module can be compiled in any model (tiny..huge) *
* *
* Note that as the mouse driver is used asyncronically (i.e. interrupts) *
* fail to call MouseInit() at the begining or even worse, call *
* MouseClose() in the end is an invitation for total system disaster! *
* *
* Gershon Elber Aug. 88 *
**************************************************************************/

#ifndef MOUSE_DRV_H /* Define only once. */
#define MOUSE_DRV_H

#define BUFFER_SIZE 256 /* Size of mouse events buffer. */

#ifndef TRUE
#define TRUE -1
#define FALSE 0
#endif

/* And finally the external routines prototypes: */

void MouseSetResolution(int Resolution);
int MouseDetect(void);
char *MouseInit(int Sensitivity);
void MouseClose(void);
int MouseQueryBuffer(void);
int MouseQueryDataBuffer(int *X, int *Y, int *Buttons, int *OverRunError);
int MouseGetBuffer(int *X, int *Y, int *Buttons);
void MouseFlushBuffer(void);
void MouseShowCursor(void);
void MouseHideCursor(void);
void MouseSetPosition(int X, int Y);

/* Two external integers defined Mouse Range (start from 0): */
extern int MSMouseXmax, MSMouseYmax;

#endif /* MOUSE_DRV_H */


  3 Responses to “Category : C Source Code
Archive   : INTRLIB1.ZIP
Filename : MOUSEDRV.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/