WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-26-2008, 02:28 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Many thanks for the code. It is working perfectly. Your suggestions are really great.

May be, my nested if loop has been interpreted wrongly. What I was trying to say was that nested loop using if statements.

def onKeyDown(key):
if key=='A':
print 'abcd'
if key=='B':
print 'pqrs'
viz.callback(viz.KEYDOWN_EVENT,onKeyDown)

When, I was using the above code and I was pressing 'A' on keyboard, I was getting a printout of 'abcd'. This implies, that the first if statement was checking the conditionality. Thus, once in the first if loop, when I was subsequently pressing the 'B' button on keyboard, I was not getting any output. Does it not imply that it was not taking the second sequential input from keyboard? or may be the 'key' was not taking in the 'B' input.

Thanks

Uttama
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Menu Options south_bank Vizard 5 07-07-2008 11:52 AM
What are the options for making a movie of a Vizard world? Karla Vizard 1 05-13-2008 11:56 AM
On Screen Keyboard betancourtb82 Vizard 14 10-03-2006 01:38 PM
Multiple Viewports in Vizard, Utilizing keyboard callback shivanangel Vizard 2 02-21-2006 05:56 PM
Timer vs. Keyboard input Wenamun Vizard 1 01-23-2006 10:04 PM


All times are GMT -7. The time now is 02:33 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC