home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer) / NeXT_Developer-3.3.iso / NextDeveloper / Headers / bsd / dev / sparc / kbdreg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-15  |  599 b   |  32 lines

  1. /*
  2.  * Copyright (c) 1994 by Sun Microsystems, Inc.
  3.  */
  4.  
  5. /*
  6.  * Keyboard implementation private definitions.
  7.  */
  8.  
  9. #ifndef _SPARC_KBREG_H_
  10. #define _SPARC_KBREG_H_
  11.  
  12. struct keyboardstate {
  13.     u_char    k_id;
  14.     u_char    k_idstate;
  15.     u_char    k_state;
  16.     u_char    k_rptkey;
  17.     u_int    k_buckybits;
  18.     u_int    k_shiftmask;
  19.     struct    keyboard *k_curkeyboard;
  20.     u_int    k_togglemask;    /* Toggle shifts state */
  21. };
  22.  
  23. /*
  24.  * States of keyboard ID recognizer
  25.  */
  26. #define    KID_NONE    0        /* startup */
  27. #define    KID_IDLE    1        /* saw IDLE code */
  28. #define    KID_LKSUN2    2        /* probably Sun-2 */
  29. #define    KID_OK        3        /* locked on ID */
  30.  
  31. #endif _SPARC_KBREG_H_ 
  32.