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

 
Output of file : MOUSEDRV.H contained in archive : POLY3DS.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) *
* *
* The following routines are available: *
* 1. MouseDetect() - returns TRUE if mouse detected in system. *
* 2. MouseInit() - must be called first before any other call. *
* 3. MouseShowCorsur() - show mouse cursor. *
* 4. MouseHideCorsur() - hide mouse cursor. *
* 5. MouseQueryBuffer() - returns event ring buffer status. *
* 6. MouseQueryDataBuffer() - returns event ring buffer data status. *
* 7. MouseGetBuffer() - returns next event from ring buffer. *
* 8. MouseFlushBuffer() - clear all data currently in buffer. *
* 9. MouseClose() - must be called last before application program dies. *
* *
* 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 TRUE

/* And finally the external routines prototypes: */

int MouseDetect(void);
char *MouseInit(void);
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   : POLY3DS.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/