Jump to content

3D mouse


sharpooth

Recommended Posts

Hi guys,

I am tring to understand input information of (grread t) on 3d Mouse.

(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





 )
)


 

the result is

2-39

2-95

2-51

2-100

2-120

2-109

2-111

2-118

2-101

2-32

5, 2070,842,0

2-39

2-95

2-51

2-100

2-120

2-109

2-111

2-118

2-101

2-32

 

 

 

2 is for 3D mouse

5 is for 2D mouse

For now OK :)

but why (grread t) replays meny times

2-39

2-95

2-51

2-100

2-120

2-109

2-111

2-118

2-101

2-32

 

?

 

Does not matter how to twist left/right, move left/right/up/down on this 3D mouse?

Link to comment
Share on other sites

Hi Lee,

I copied one to one content of autocad text screen.You are right that 2 is keyboard input. I am runnig on Win XP/32bit , autocad 2009. The 3D mouse is 3Dconnexion- the simples with two buttons. Else under AutoCad 2009 it is working perfect - zoom, pan, move and so on.

 

May be (grread) can not read correctly from this device.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...