/*
****************************************************************************

      Input Device ToolKit Subroutines.
      Function Prototypes and Pragmas.

      Input.h.
      Version 1.1.

      Paris E. Bingham Jr.
      Copyright © 1986 - 1990  All Rights Reserved.


      History:

    Version      Date      Comments
    -------    --------    -----------------------------------------------
      1.0      12/01/89    PEB - Created.
      1.1      09/04/90    PEB - Add support for Manx C V5.0.
               09/22/90    PEB - Add support for SAS C V5.10.

****************************************************************************
*/

#ifndef  DT_PROTO_INPUT_H
#define  DT_PROTO_INPUT_H

/*
      Functions Prototypes
*/

#ifdef   __ARGS
#undef   __ARGS
#endif

#ifdef   MANXV3
#define  __ARGS(a)   ()    /* No intelligent function prototyping (ANSI) */
#else
#define  __ARGS(a)   a     /* Lattice and Manx V5 supports the above */
#endif

DTInput_t   DTInputCreate __ARGS( (LONG *) );
DTInput_t   DTInputCreateLike __ARGS( (DTInput_t,LONG *) );
void        DTInputDestroy __ARGS( (DTInput_t) );
LONG        DTInputFlush __ARGS( (DTInput_t) );
LONG        DTInputReset __ARGS( (DTInput_t) );
LONG        DTInputStart __ARGS( (DTInput_t) );
LONG        DTInputStop __ARGS( (DTInput_t) );
LONG        DTInputWriteEvent __ARGS( (DTInput_t,BYTE *,ULONG) );
LONG        DTInputAddHandler __ARGS( (DTInput_t,struct Interrupt *) );
LONG        DTInputRemHandler __ARGS( (DTInput_t,struct Interrupt *) );
LONG        DTInputSetMPort __ARGS( (DTInput_t,BYTE *) );
LONG        DTInputSetMTrigger \
               __ARGS( (DTInput_t,struct GamePortTrigger *) );
LONG        DTInputSetMType __ARGS( (DTInput_t,BYTE *) );
LONG        DTInputSetPeriod __ARGS( (DTInput_t,struct timeval *) );
LONG        DTInputSetThresh __ARGS( (DTInput_t,struct timeval *) );
void        DTInputOpen __ARGS( (ULONG) );
void        DTInputClose __ARGS( () );

/*
      Pragmas
*/

#ifndef  NO_PRAGMAS
#include "DeviceToolKits/proto/InputPragmas.h"
#endif

#undef   __ARGS

/*
****************************************************************************
      End of Input.h
****************************************************************************
*/

#endif

