home *** CD-ROM | disk | FTP | other *** search
/ ftp.update.uu.se / ftp.update.uu.se.2014.03.zip / ftp.update.uu.se / pub / rainbow / msdos / decus / RB140 / grlib03a.arj / ASMMS.H < prev    next >
Text File  |  1988-12-19  |  3KB  |  80 lines

  1.  
  2.  
  3. ;***************************************************************************
  4. ;                                                                          *
  5. ;   Copyright (C) 1983,1984 by Microsoft Inc.                              *
  6. ;                                                                          *
  7. ;***************************************************************************
  8.  
  9. ;***************************************************************************
  10. ;                                                                          *
  11. ;   Header file for Microsoft mouse device driver.  Contains all machine   *
  12. ;   specific constant and data structure definitions.                      *
  13. ;                                                                          *
  14. ;***************************************************************************
  15.  
  16.  
  17.  
  18. ;-----------------------------------------------------------------------;
  19. ;
  20. ; Mouse equates
  21.  
  22.  
  23. mbfr struc            ;local buffer for comm input
  24.  
  25. count    dw    0
  26. size    dw    128-16
  27. ipntr    dw    ?
  28. opntr    dw    ?
  29. highw    dw    ?
  30. loww    dw    ?
  31. head    dw    ?
  32. tail    dw    ?
  33. mdata    dw    128-16 dup (?)
  34. mbfr ends
  35.  
  36. ctl_head struc        ;packet for IOCTL calls
  37.  
  38. funct    db    ?    ;function
  39. stat    db    ?    ;returned status
  40. char    db    ?    ;character
  41. cstat    db    ?    ;character status
  42. ctl_head ends
  43.  
  44. cpkt      struc        ;MOUSE interrupt condition packet "CONDITION_PACKET"
  45.  
  46. Movement    dw    ?        ;TRUE = movement has occurred
  47. S_button_rel    dw    0        ;secondary button release count
  48. S_button_dep    dw    0        ;secondary button depress count
  49. P_button_rel    dw    0        ;primary button release count
  50. P_button_dep    dw    0        ;primary button depress count
  51. Delta_x            dw    0    ;x delta factor (horizontal)
  52. Delta_y            dw    0    ;y delta factor (vertical)
  53. Cpkt    ends            ;
  54.  
  55.  
  56. mpkt    struc        ;MOUSE control packet  "MOUSE_PACKET"
  57.  
  58. P_button        dw    ?    ;TRUE = left or primary button act
  59. S_button        dw    ?    ;TRUE = right or secondary button
  60. T_button        dw    ?    ;TRUE = middle or tertiary button 
  61. Deltax            dw    0    ;x delta factor (horizontal)
  62. X_ratio            dw    0    ;x magnification factor (OPEN)
  63. X_threshold        dw    0    ;x speed limit          (OPEN)
  64. Deltay            dw    0    ;y delta factor (vertical)
  65. Y_ratio            dw    0    ;y magnification factor (OPEN)
  66. Y_threshold        dw    0    ;y speed limit          (OPEN)
  67. Immediate        dw    ?    ;TRUE = wait for input
  68. Enabled            dw    ?    ;TRUE = mouse OK to use
  69. Type            dw    0    ;mouse type - see MOUSETYPE
  70. Device            dw    0    ;port number MDM, PRT or AUX
  71. Port_name        db    5 dup(0);port name
  72. Handle            dw    0    ;device handle
  73. Bstate            dw    0    ;button state storage
  74. Programmed        dw    ?    ;TRUE = port programmed for Mouse
  75. New_vectors        dw    ?    ;TRUE = RCI vectored in
  76. Trace            dw    ?    ;TRUE = trace mode
  77. Mpkt    ends
  78.  
  79. 
  80.