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 / DTInputAddHandler.doc < prev    next >
Encoding:
Text File  |  1991-01-05  |  1.5 KB  |  67 lines

  1.  
  2.                              Input Device ToolKit
  3.  
  4.  
  5.      DTInputAddHandler (1.1)                        DTInputAddHandler (1.1)
  6.  
  7.  
  8.      NAME
  9.  
  10.                DTInputAddHandler        Add an Event Handler for the Input
  11.                                         Device
  12.  
  13.      SYNOPSIS
  14.  
  15.                #include  "DeviceToolKits/Input.h"
  16.                #include  "DeviceToolKits/proto/Input.h"
  17.  
  18.                status = DTInputAddHandler(DTInput,handler);
  19.  
  20.                DTInput_t           DTInput;       Control structure
  21.                struct    Interrupt *handler;      Interrupt handler
  22.  
  23.                LONG                status;        Returned status
  24.  
  25.      FUNCTION
  26.  
  27.                This function adds an Event Handler for the Input device. 
  28.                This handler will be called whenever the input device has an
  29.                input event, or set of events, ready for processing.  Always
  30.                make sure to remove the event handler with DTInputRemHandler
  31.                before program exit.
  32.  
  33.      RETURNS
  34.  
  35.                If 'status' is zero, the handler has been added.  If
  36.                'status' is greater than zero, the ToolKit has detected an
  37.                error and that error is returned.  If 'status' is less than
  38.                zero, an error was detected by the I/O system and that error
  39.                is returned in the in_error field of the control structure.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  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.