WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 05-19-2010, 05:59 AM
tsgk tsgk is offline
Join Date: Mar 2010
Posts: 7
Joystick setForce

Hello all,

I have a (hopefully) quick question with regards to one of the joystick options, the <vizjoy:joystick>.setForce([x,y]) where [x,y] is the force vector you want to set to the FFB device.
Has anyone used this command succesfully to moderate the strength of the FFB? There are no examples in the Help files.. Help!! How do I use this? What values can I put to the force vector?

Thanks in advance!!
Reply With Quote
Old 05-31-2011, 04:35 AM
levisii levisii is offline
Join Date: Mar 2009
Posts: 8

did you try the <vizjoy:joystick>.hasFFB() function? I was wondering too, why I'm not able to generate any ff-effect. Seems like the ffb-function of my joystick can't be identified. This is my testprogram:

import viz
import vizjoy

joystick = vizjoy.add()
print 'FFB = ' + str(joystick.hasFFB())

def joyButton(e):
	if e.button == 1:
		print '1'
	if e.button == 2:
		print '2'
	if e.button == 3:
		print '3'
	if e.button == 4:
		print '4'

this is my print out:

** NOTIFY: 1 joystick(s) detected
1 - Logitech Force 3D Pro
** NOTIFY: Connected to Logitech Force 3D Pro
Supported: X Axis, Y Axis, Rz, Slider, 12 Buttons, Hat switch,
FFB = False
Reply With Quote
Old 06-07-2011, 06:09 AM
levisii levisii is offline
Join Date: Mar 2009
Posts: 8

Well, it was just a problem with the driver. The example is working now.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
changing the gain of a joystick during a program Saz Vizard 4 06-25-2009 03:49 AM
How to get the data from Logitech G25 racing wheel ? fuyonggang Vizard 4 12-18-2008 06:14 PM
writing joystick position to a data file Saz Vizard 3 12-17-2008 05:18 AM
Joystick Navigation Vinicius Lima Vizard 7 10-23-2007 10:42 AM
Facetracking and Immersion Joystick Vygreif Vizard 1 01-25-2006 10:56 AM

All times are GMT -7. The time now is 09:52 AM.

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