home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 1: Amiga
/
FrozenFish-Apr94.iso
/
bbs
/
gnu
/
emacs-18.59-bin.lha
/
lib
/
emacs
/
18.59
/
lisp
/
amiga-mouse.elc
< prev
next >
Wrap
Text File
|
1992-11-21
|
10KB
|
266 lines
(provide (quote amiga-mouse))
(defconst amiga-button-right (char-to-string 0))
(defconst amiga-button-middle (char-to-string 1))
(defconst amiga-button-left (char-to-string 2))
(defconst amiga-button-right-up (char-to-string 4))
(defconst amiga-button-middle-up (char-to-string 5))
(defconst amiga-button-left-up (char-to-string 6))
(defconst amiga-button-s-right (char-to-string 16))
(defconst amiga-button-s-middle (char-to-string 17))
(defconst amiga-button-s-left (char-to-string 18))
(defconst amiga-button-s-right-up (char-to-string 20))
(defconst amiga-button-s-middle-up (char-to-string 21))
(defconst amiga-button-s-left-up (char-to-string 22))
(defconst amiga-button-m-right (char-to-string 32))
(defconst amiga-button-m-middle (char-to-string 33))
(defconst amiga-button-m-left (char-to-string 34))
(defconst amiga-button-m-right-up (char-to-string 36))
(defconst amiga-button-m-middle-up (char-to-string 37))
(defconst amiga-button-m-left-up (char-to-string 38))
(defconst amiga-button-c-right (char-to-string 64))
(defconst amiga-button-c-middle (char-to-string 65))
(defconst amiga-button-c-left (char-to-string 66))
(defconst amiga-button-c-right-up (char-to-string 68))
(defconst amiga-button-c-middle-up (char-to-string 69))
(defconst amiga-button-c-left-up (char-to-string 70))
(defconst amiga-button-m-s-right (char-to-string 48))
(defconst amiga-button-m-s-middle (char-to-string 49))
(defconst amiga-button-m-s-left (char-to-string 50))
(defconst amiga-button-m-s-right-up (char-to-string 52))
(defconst amiga-button-m-s-middle-up (char-to-string 53))
(defconst amiga-button-m-s-left-up (char-to-string 54))
(defconst amiga-button-c-s-right (char-to-string 80))
(defconst amiga-button-c-s-middle (char-to-string 81))
(defconst amiga-button-c-s-left (char-to-string 82))
(defconst amiga-button-c-s-right-up (char-to-string 84))
(defconst amiga-button-c-s-middle-up (char-to-string 85))
(defconst amiga-button-c-s-left-up (char-to-string 86))
(defconst amiga-button-c-m-right (char-to-string 96))
(defconst amiga-button-c-m-middle (char-to-string 97))
(defconst amiga-button-c-m-left (char-to-string 98))
(defconst amiga-button-c-m-right-up (char-to-string 100))
(defconst amiga-button-c-m-middle-up (char-to-string 101))
(defconst amiga-button-c-m-left-up (char-to-string 102))
(defconst amiga-button-c-m-s-right (char-to-string 112))
(defconst amiga-button-c-m-s-middle (char-to-string 113))
(defconst amiga-button-c-m-s-left (char-to-string 114))
(defconst amiga-button-c-m-s-right-up (char-to-string 116))
(defconst amiga-button-c-m-s-middle-up (char-to-string 117))
(defconst amiga-button-c-m-s-left-up (char-to-string 118))
(defmacro cadr (x) (byte-code "ÁÂDD" [x car cdr] 3))
(defmacro caddr (x) (byte-code "ÁÂÂDDD" [x car cdr] 4))
(defmacro cadddr (x) (byte-code "ÁÂÂÂDDDD" [x car cdr] 5))
(defun coordinates-in-window-p (arg w) (byte-code " @ A@Å!@Y 7 AA@W 7
A@Y 7
AAA@W 7 @Z
A@ZD+" [x arg y edges w window-edges] 4))
(defvar amiga-process-mouse-hook nil "\
Hook to run after each mouse event is processed. Should take two
arguments; the first being a list (XPOS YPOS) corresponding to character
offset from top left of screen and the second being a specifier for the
buttons/keys.
This will normally be set on a per-buffer basis.")
(defun amiga-flush-mouse-queue nil "\
Process all queued mouse events." (interactive) (byte-code "ÃÄ ÅV