Thread: input & gamepad
View Single Post
  #1  
Old 08-15-2005, 03:11 PM
dominic dominic is offline
Member
 
Join Date: Aug 2005
Posts: 8
input & gamepad

Hey,

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?

thanks,

dominic

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


#testing
import viz
import sid

viz.go()

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