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. |