home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
499.lha
/
GamePortDeviceToolKit
/
gameport.lzh
/
src
/
DeviceToolKits
/
GamePort
/
test_shared
/
test10.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-03
|
615b
|
38 lines
#include <stdio.h>
#include "DeviceToolKits/GamePort.h"
#ifndef TESTPROTO
#define NO_PRAGMAS 1
#endif
#include "DeviceToolKits/proto/GamePort.h"
#include "DeviceToolKits/GamePortBase.h"
LONG joy0val;
LONG joy1val;
main(argc,argv)
int argc;
char *argv[];
{
#ifdef TESTSHARED
/* Open the GamePort library */
DTGamePortOpen(DTGAMEPORTREV);
#endif
/* Read the joystick ports */
while (1) {
joy0val = DTGamePortDJoy(0L);
joy1val = DTGamePortDJoy(1L);
printf("Joy0: %x Joy1: %x\n",joy0val,joy1val);
Delay(25L);
}
#ifdef TESTSHARED
DTGamePortClose();
#endif
}