WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 08-15-2005, 03:11 PM
dominic dominic is offline
Join Date: Aug 2005
Posts: 8
input & gamepad


I have the following code. So, if I add one of those viz.input calls to get input then I am not able to get any input from the gamepad anymore. If I remove the viz.input line, then everything works just fine.
What am I doing wrong?



PS: How can I submit code so that it keeps the indentions?

import viz
import sid


def userInput(num):
print 'num: ', num

if viz.running():#tried it with or without this magic line
h = viz.input("please enter a number: ")#PROBLEM

sid.callback(sid.BUTTONDOWN_EVENT, userInput)
Reply With Quote
Old 08-15-2005, 04:01 PM
farshizzo farshizzo is offline
WorldViz Team Member
Join Date: Mar 2003
Posts: 2,849

Try placing the import sid statement after you call viz.go(). Also, when posting code place it between [code ] tags. Example:

[code ] some code [/code]
Reply With Quote

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

All times are GMT -7. The time now is 03:44 AM.

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