From: Ryan M. <RMA...@md...> - 2001-07-18 17:23:57
|
>> Furthermore, is there a way to capture events such as mouse clicks >> (primarily the right mouse button), and get the mouse position. I = would >> need to override the default response of rotation. > >look at the stonehenge demo program for a way of overriding the default >navigation system. Thanks for your response. Is there a way of distinguishing between the = various buttons (i.e. knowing whether or not it was the left or right = mouse button that was clicked)? Furthermore, can you get keyboard input, = so that a menu could appear when a certain key was pressed. |
From: McDermid, R. <Rob...@em...> - 2001-07-18 20:49:48
|
> that's what you guys use that weird little clover-leaf button > for, right? > because it's obviously more intuitive :) (gotta be, since > Apple came up with > it) > > sorry, i couldn't help but laugh at this one. > Don't laugh too hard. Up until windows 95 came along, the windows gui only used a single button even though every single PC mouse (including the Microsoft mouse) has at least two buttons. Yeah, individual apps could use the right mouse button, but windows itself didn't. To my mind OS/2 is still the only OS that makes really intelligent use of the right mouse button (and I include Unix in that assessment). |
From: Bruce S. <ba...@an...> - 2001-07-18 18:02:27
|
See the VPython documentation, both at the web site and accompanying the application. Unfortunately at present mouse interactions are not nearly complete. All you can get is current mouse position, and clicks for the left button. This obviously should be generalized to include the right button, and being able to interrogate the current state (up/down) for both buttons. Also, it seems desirable to change the default navigation options so as not to use left down for zoom but something else (say CTRL left down). I observe that most people are disconcerted to have to drag with the mouse button up -- no other applications work that way. (To everyone: do you have a better suggestion than CTRL left down for zoom?) I'm not sure about keypresses..... One thing I've done in some of my programs is make a button to click on, using a sphere or box with a label. Bruce Sherwood --On Wednesday, July 18, 2001 1:22 PM -0400 Ryan Martens <RMA...@md...> wrote: > Thanks for your response. Is there a way of distinguishing between the > various buttons (i.e. knowing whether or not it was the left or right > mouse button that was clicked)? Furthermore, can you get keyboard input, > so that a menu could appear when a certain key was pressed. |
From: David S. <dsc...@vy...> - 2001-07-18 18:08:05
|
> Also, it seems desirable to change the default navigation > options so as not > to use left down for zoom but something else (say CTRL left down). I > observe that most people are disconcerted to have to drag > with the mouse > button up -- no other applications work that way. (To > everyone: do you have > a better suggestion than CTRL left down for zoom?) Many mice now have scroll wheels, which could be used either for zooming in discrete chunks or holding down the scroll wheel and dragging for continuous zoom. Both mouse buttons is also an option. I did the latter in an unreleased version of Visual that I used for some other things. I also did some work on the other input stuff. If I have some time maybe I can get that stuff checked in. Dave |
From: Bruce S. <ba...@an...> - 2001-07-18 19:49:14
|
--On Wednesday, July 18, 2001 2:05 PM -0400 David Scherer <dsc...@vy...> wrote: > Many mice now have scroll wheels, which could be used either for zooming > in discrete chunks or holding down the scroll wheel and dragging for > continuous zoom. Both mouse buttons is also an option. Not on a one-button Mac mouse..... > I did the latter in an unreleased version of Visual that I used for some > other things. I also did some work on the other input stuff. If I have > some time maybe I can get that stuff checked in. Great! Bruce Sherwood |
From: Ari H. <ahe...@an...> - 2001-07-18 20:17:07
|
On Wed, Jul 18, 2001 at 03:49:47PM -0400, Bruce Sherwood wrote: > --On Wednesday, July 18, 2001 2:05 PM -0400 David Scherer > <dsc...@vy...> wrote: > > > continuous zoom. Both mouse buttons is also an option. > > Not on a one-button Mac mouse..... that's what you guys use that weird little clover-leaf button for, right? because it's obviously more intuitive :) (gotta be, since Apple came up with it) sorry, i couldn't help but laugh at this one. ari |