大家好,
我想了解3d鼠标上(grread t)的输入信息。
- (defun c:go ()
- (setq check 0)
- (while (= check 0)
- (setq dr (grread t))
- (if (atom (nth 1 dr))
- (progn
- (princ (strcat "\n" (rtos (nth 0 dr) 2 0) "-" (rtos (nth 1 dr) 2 0)))
- )
- (progn
- (princ (strcat "\n"
- (rtos (nth 0 dr) 2 0)
- ", "
- (rtos (car (nth 1 dr)) 2 0)
- ","
- (rtos (cadr (nth 1 dr)) 2 0)
- ","
- (rtos (caddr (nth 1 dr)) 2 0)
- " "
- ))
- );progn
- );if
- )
- )
结果是
2用于3D鼠标
5用于2D鼠标
现在可以了
但是为什么(grread t)重播meny时间
2-39
2-95
2-51
2-100
2-120
2-109
2-111
2-118
2-101
2-32
?
在这个3D鼠标上,如何向左/向右扭转、向左/向右/向上/向下移动并不重要? |