WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 08-16-2012, 05:26 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can use the vizcedrus module. To connect to the pad use the following:
Code:
#Connect to cedrus pad
import vizcedrus
vizcedrus.open() #Default: port=1 , baudRate=19200
Then you can register callback functions for button events:
Code:
#Setup cedrus callbacks
def cedrusButtonDown(e):
	print e.button,'button down' 

def cedrusButtonUp(e):
	e.button,'button up'

viz.callback(vizcedrus.BUTTONDOWN_EVENT,cedrusButtonDown)
viz.callback(vizcedrus.BUTTONUP_EVENT,cedrusButtonUp)
Reply With Quote
 


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
HapticMaster + Vizard 4.0 SDK help pwsnow Plug-in development 7 03-03-2014 04:44 AM
integrating brain-imaging response buttons with Vizard hrm Vizard 1 05-04-2012 07:24 AM
viznet does not response! shahramy Vizard 3 06-16-2010 07:12 PM
IE cannot display form response page from python server Gladsomebeast Vizard 2 12-01-2008 10:12 PM


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


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