home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C++ Games Programming
/
CPPGAMES.ISO
/
thx
/
source
/
theatrix
/
mcsrvr.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-25
|
377b
|
19 lines
#include <iostream.h>
#include <fastgraf.h>
#include <dos.h>
#include "standard.h"
#include "mcfold.h"
#include "mcsrvr.h"
void MouseclickServer::check(Folder& fld)
{
int count, x, y;
fg_mousebut(1,&count,&x,&y);
if (count)
fld.dispatch(x, y, LEFTMOUSEBUTTON);
fg_mousebut(2,&count,&x,&y);
if (count)
fld.dispatch(x, y, RIGHTMOUSEBUTTON);
}