123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177 |
- (provide (quote x-mouse))
- (defconst x-button-right (char-to-string 0))
- (defconst x-button-middle (char-to-string 1))
- (defconst x-button-left (char-to-string 2))
- (defconst x-button-right-up (char-to-string 4))
- (defconst x-button-middle-up (char-to-string 5))
- (defconst x-button-left-up (char-to-string 6))
- (defconst x-button-s-right (char-to-string 16))
- (defconst x-button-s-middle (char-to-string 17))
- (defconst x-button-s-left (char-to-string 18))
- (defconst x-button-s-right-up (char-to-string 20))
- (defconst x-button-s-middle-up (char-to-string 21))
- (defconst x-button-s-left-up (char-to-string 22))
- (defconst x-button-m-right (char-to-string 32))
- (defconst x-button-m-middle (char-to-string 33))
- (defconst x-button-m-left (char-to-string 34))
- (defconst x-button-m-right-up (char-to-string 36))
- (defconst x-button-m-middle-up (char-to-string 37))
- (defconst x-button-m-left-up (char-to-string 38))
- (defconst x-button-c-right (char-to-string 64))
- (defconst x-button-c-middle (char-to-string 65))
- (defconst x-button-c-left (char-to-string 66))
- (defconst x-button-c-right-up (char-to-string 68))
- (defconst x-button-c-middle-up (char-to-string 69))
- (defconst x-button-c-left-up (char-to-string 70))
- (defconst x-button-m-s-right (char-to-string 48))
- (defconst x-button-m-s-middle (char-to-string 49))
- (defconst x-button-m-s-left (char-to-string 50))
- (defconst x-button-m-s-right-up (char-to-string 52))
- (defconst x-button-m-s-middle-up (char-to-string 53))
- (defconst x-button-m-s-left-up (char-to-string 54))
- (defconst x-button-c-s-right (char-to-string 80))
- (defconst x-button-c-s-middle (char-to-string 81))
- (defconst x-button-c-s-left (char-to-string 82))
- (defconst x-button-c-s-right-up (char-to-string 84))
- (defconst x-button-c-s-middle-up (char-to-string 85))
- (defconst x-button-c-s-left-up (char-to-string 86))
- (defconst x-button-c-m-right (char-to-string 96))
- (defconst x-button-c-m-middle (char-to-string 97))
- (defconst x-button-c-m-left (char-to-string 98))
- (defconst x-button-c-m-right-up (char-to-string 100))
- (defconst x-button-c-m-middle-up (char-to-string 101))
- (defconst x-button-c-m-left-up (char-to-string 102))
- (defconst x-button-c-m-s-right (char-to-string 112))
- (defconst x-button-c-m-s-middle (char-to-string 113))
- (defconst x-button-c-m-s-left (char-to-string 114))
- (defconst x-button-c-m-s-right-up (char-to-string 116))
- (defconst x-button-c-m-s-middle-up (char-to-string 117))
- (defconst x-button-c-m-s-left-up (char-to-string 118))
- (defvar x-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 x-flush-mouse-queue nil "\
- Process all queued mouse events." (interactive) (byte-code "ÃˆÄ ÅV… Æ ˆÇÀ!… ÀJ… È
- #ˆ‚ ‡" [x-process-mouse-hook x-mouse-pos x-mouse-item nil x-mouse-events 0 x-proc-mouse-event boundp funcall] 8))
- (define-key global-map "
" (quote x-flush-mouse-queue))
- (define-key global-map " " (quote x-flush-mouse-queue))
- (defun x-mouse-select (arg) "\
- Select Emacs window the mouse is on." (byte-code "Ç ÂÇ Â ?… È
\"‰?…, É!‰ˆ=…( Ɖˆ‚
|