Changeset 582 for abuse/trunk/data-abuse/lisp/input.lsp
- Timestamp:
- May 6, 2011, 12:47:14 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
abuse/trunk/data-abuse/lisp/input.lsp
r54 r582 28 28 ;; "Home","End","Del","F1","F2","F3","F4","F5","F6", 29 29 ;; "F7","F8","F9","F10","Insert" 30 ;; "a", "b", "c", ... 30 ;; "a", "b", "c", ... 31 31 ;; though not all of these keys will work on all operating systems 32 32 … … 46 46 (defun get_local_input () 47 47 (let ((mstat (mouse_stat))) 48 (list (if (local_key_pressed left-key) -1 (if (local_key_pressed right-key) 1 0)) ;; xv 48 (list (if (local_key_pressed left-key) -1 (if (local_key_pressed right-key) 1 0)) ;; xv 49 49 (if (local_key_pressed up-key) -1 (if (local_key_pressed down-key) 1 0)) ;; yv 50 50 (eq (fourth mstat) 1) ;; special button 51 51 (eq (third mstat) 1) ;; fire button 52 53 (if (or (eq (fifth mstat) 1) 52 53 (if (or (eq (fifth mstat) 1) 54 54 (local_key_pressed weapon-left-key)) -1 ;; weapon toggle 55 55 (if (local_key_pressed weapon-right-key) 1 0)) … … 59 59 60 60 61 62 63 64 61 65 62 66 63 64 65 66
Note: See TracChangeset
for help on using the changeset viewer.