keyboard.h 626 B

1234567891011121314151617181920
  1. #ifndef __LINUX_KEYBOARD_H
  2. #define __LINUX_KEYBOARD_H
  3. #include <uapi/linux/keyboard.h>
  4. struct notifier_block;
  5. extern unsigned short *key_maps[MAX_NR_KEYMAPS];
  6. extern unsigned short plain_map[NR_KEYS];
  7. struct keyboard_notifier_param {
  8. struct vc_data *vc; /* VC on which the keyboard press was done */
  9. int down; /* Pressure of the key? */
  10. int shift; /* Current shift mask */
  11. int ledstate; /* Current led state */
  12. unsigned int value; /* keycode, unicode value or keysym */
  13. };
  14. extern int register_keyboard_notifier(struct notifier_block *nb);
  15. extern int unregister_keyboard_notifier(struct notifier_block *nb);
  16. #endif