home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 499.lha / InputDeviceToolKit / input.lzh / src / DeviceToolKits / Input / docs / DTInputCreate.doc < prev    next >
Encoding:
Text File  |  1991-01-05  |  1.7 KB  |  67 lines

  1.  
  2.                              Input Device ToolKit
  3.  
  4.  
  5.      DTInputCreate (1.1)                                DTInputCreate (1.1)
  6.  
  7.  
  8.      NAME
  9.  
  10.                DTInputCreate            Create and Initialize an Input
  11.                                         Control Structure
  12.  
  13.      SYNOPSIS
  14.  
  15.                #include  "DeviceToolKits/Input.h"
  16.                #include  "DeviceToolKits/proto/Input.h"
  17.  
  18.                DTInput = DTInputCreate(status);
  19.  
  20.                LONG      *status;                 Returned status
  21.  
  22.                DTInput_t DTInput;                 Returned control
  23.                                                   structure
  24.  
  25.      FUNCTION
  26.  
  27.                This function creates and initializes an Input device
  28.                control structure.  The following are allocated for the
  29.                control structure:  (Be sure to call DTInputFree to release
  30.                these resources)
  31.  
  32.                     Memory for the control structure.
  33.                     A private write reply port (no name, priority 0).
  34.                     A write request block (IOStdReq).
  35.                     A private timer reply port (no name, priority 0).
  36.                     A timer request block (timerequest).
  37.  
  38.                Upon successful allocation of all of the above, an
  39.                OpenDevice call is made to "input.device".
  40.  
  41.      RETURNS
  42.  
  43.                An Input control structure is returned for use in all other
  44.                DTInput calls.  If NULL is returned, the variable 'status'
  45.                will contain the error code.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                                                           1
  62.           Printed September 10, 1990                                 Page  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.