How do you switch between multiple input devices setup in Vizconnect and not setup in Vizconnect to control the display (viewpoint). I know how to switch between different input devices setup in Vizconnect. But is there way to setup so user can be able to switch between the input devices setup in vizconnect and also be able to switch to a having something like a vizhtml page as the input device to move viewpoint around in the virtual world. Like the htmlWebSocket.py found in Vizard5->examples->html and how you can click on vizhtml page and move the viewpoint around.
Example of code using for switching between input devices setup in vizconnect
Code:
keyTracker = vizconnect.getTracker('keyboard')
fly_mouseKeyTracker = vizconnect.getTracker('mouse_and_keyboard_flying')
walk_mouseKeyTracker = vizconnect.getTracker('mouse_and_keyboard_walking')
helicopterTransport = vizconnect.getTransport('helicopter')
flyingTransport = vizconnect.getTransport('flying')
wandmagiccarpetTransport = vizconnect.getTransport('wandmagiccarpet')
display = vizconnect.getDisplay()
vizact.onkeydown('1',display.setParent,helicopterTransport)
vizact.onkeydown('2',display.setParent,fly_mouseKeyTracker)
vizact.onkeydown('3',display.setParent,walk_mouseKeyTracker)
vizact.onkeydown('4',display.setParent,keyTracker)
vizact.onkeydown('5',display.setParent,flyingTransport)
vizact.onkeydown('6',display.setParent,wandmagiccarpetTransport)
Thank you
John