atarikb.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. ** atarikb.h -- This header contains the prototypes of functions of
  3. ** the intelligent keyboard of the Atari needed by the
  4. ** mouse and joystick drivers.
  5. **
  6. ** Copyright 1994 by Robert de Vries
  7. **
  8. ** This file is subject to the terms and conditions of the GNU General Public
  9. ** License. See the file COPYING in the main directory of this archive
  10. ** for more details.
  11. **
  12. ** Created: 20 Feb 1994 by Robert de Vries
  13. */
  14. #ifndef _LINUX_ATARIKB_H
  15. #define _LINUX_ATARIKB_H
  16. void ikbd_write(const char *, int);
  17. void ikbd_mouse_button_action(int mode);
  18. void ikbd_mouse_rel_pos(void);
  19. void ikbd_mouse_abs_pos(int xmax, int ymax);
  20. void ikbd_mouse_kbd_mode(int dx, int dy);
  21. void ikbd_mouse_thresh(int x, int y);
  22. void ikbd_mouse_scale(int x, int y);
  23. void ikbd_mouse_pos_get(int *x, int *y);
  24. void ikbd_mouse_pos_set(int x, int y);
  25. void ikbd_mouse_y0_bot(void);
  26. void ikbd_mouse_y0_top(void);
  27. void ikbd_mouse_disable(void);
  28. void ikbd_joystick_event_on(void);
  29. void ikbd_joystick_event_off(void);
  30. void ikbd_joystick_get_state(void);
  31. void ikbd_joystick_disable(void);
  32. /* Hook for MIDI serial driver */
  33. extern void (*atari_MIDI_interrupt_hook) (void);
  34. /* Hook for keyboard inputdev driver */
  35. extern void (*atari_input_keyboard_interrupt_hook) (unsigned char, char);
  36. /* Hook for mouse inputdev driver */
  37. extern void (*atari_input_mouse_interrupt_hook) (char *);
  38. int atari_keyb_init(void);
  39. #endif /* _LINUX_ATARIKB_H */