Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Logitech G27  (Read 991 times)
konsey
Customers
Community Member
*****
Posts: 173


« on: February 04, 2012, 05:16:33 PM »

Hi All,

I want to integrate logitech steering wheel and pedals and shifting hardware. Is there any library or source of reference dll that I can use in VB.NET?

Or,

Can I use Gamecontroller to get inputs from logitech hardware? Did any one give a try to this?

Thanks in advance
Logged
Waterman
Moderator
Community Member
*****
Posts: 1157


« Reply #1 on: February 04, 2012, 08:36:20 PM »

Sure you can, just use GameControllers and GameController.

Pseudo:
Code:
- Controllers = Inputengine.GetControllers // A parent object
- count = Controllers.Count

Then loop s through 0...count-1 (e.g. create an array of controller objects):
Code:
- controllerobjectlist[s] = Controllers.Item s // This returns a TV3D.Controller object
- controllerobjectlist[s].Initialize
- controllerobjectlist[s].AxisCount, ButtonCount, ControllerType etc etc

After this, you have a the data. You can select/skip from the controllerobjectlist (because for example my Sidewinder returns 3 controllers though it's only a whee).

To read the controller:
Code:
- controllerobjectlist[n].GetControllerState.(x, Y, Z, bla bla - see TV_JOYSTATE structure). 

Hint: A controller returns a value 0...10000 on for example it's x-axis.

Good luck! Smiley

Edit:
PS! Ensure that u have initialized the inputengine before doing the controllers! Smiley
« Last Edit: February 04, 2012, 08:37:57 PM by Waterman » Logged

Things should be described as simply as possible - but not simpler [A. Einstein]
konsey
Customers
Community Member
*****
Posts: 173


« Reply #2 on: February 05, 2012, 09:37:57 AM »

Thank you very much for your GREAT HELP. You saved my weeks. Smiley THANKS A LOT.
Logged
Waterman
Moderator
Community Member
*****
Posts: 1157


« Reply #3 on: February 05, 2012, 07:59:24 PM »

:-)

Another hint: My Sidewinder wheel seems to be "dead" when... well i don't know yet at what particular situation. Computer restart, or application first run, or cable reconnect. TV3D does find it (it's among the Controller objects above), but the data it sends remains unchanged.

... until i rotate the wheel to it's left endposition. Then it "wakes up" and the axis data begins to change as o rotate the wheel.

After that, it's "alive"... perhaps up to next reboot. I haven't found the pattern for this yet.

In fact, i found this oddity yesterday, but today i had forgotten it, and was quite confused until i happened to touch the left endposition (well by mistake, hehe), and voilá - THAT was the trick :-).
Logged

Things should be described as simply as possible - but not simpler [A. Einstein]
asia
Customers
Community Member
*****
Posts: 183


« Reply #4 on: February 08, 2012, 04:16:37 AM »

I also should use the G27. I wonder if you ever managed the force feedback because I do not know how to use it in TV3d.
Logged

Fabio Musmeci
ENEA
CR Casaccia
Via Anguillarese 301
00060 Rome
Italy
musmeci@enea.it
+39 3333934898
Learning to live better on a smaller footprint..
konsey
Customers
Community Member
*****
Posts: 173


« Reply #5 on: February 08, 2012, 11:46:06 AM »

Thanks again for Hint...

Well Today I bought Logitech G27 set.

I will let you all know when I manage to succeed reading the inputs and also what can be achieved.
Logged
konsey
Customers
Community Member
*****
Posts: 173


« Reply #6 on: February 10, 2012, 04:41:11 PM »

I have tried the logitech g27 steering wheel and pedals including the gear sh**ing. Everything works fine with tv3d gamecontroller. I have found the code in link http://www.xtremevbtalk.com/attachment.php?attachmentid=23257&d=1133479532 and this was really short and useful.

But I could not find any force feedback samples. TV3D is also not capable of using force feedback functions for controllers.

I am still in search of force feedback information or samples to implement.

thanks
Logged
Dimple
Community Member
*
Posts: 580


« Reply #7 on: February 11, 2012, 01:03:34 PM »

 Smiley

Have you searched through their sister site: http://www.xtremedotnettalk.com/ 
to see if they have anything else useful to you?  Thanks for the other link I haven't had time to properly check out the code yet.

Logged

Using VB.NET, TV3D 6.5, VISTA
~~~~~~~~~~~~~~~~~~~~~~~

"Know how to ask. There is nothing more difficult for some people, nor for others, easier."

- Baltasar Gracian
konsey
Customers
Community Member
*****
Posts: 173


« Reply #8 on: February 11, 2012, 06:18:14 PM »

I have searched their sister site too but till now I couldn't find any useful information for force feedback. My problem is : I don't know how to send some forcefeedback commands to steering wheel to make it loose or tightened. As default it begins as tight in spring. But it should be a bir more easy when starting to drive. And Also I am looking for creating a vibration to steering wheel.

I will let you know when I find a solution for those.

Smiley)
Logged
konsey
Customers
Community Member
*****
Posts: 173


« Reply #9 on: March 15, 2012, 04:14:54 AM »

Hi,

After trying the logitech and tv3d the most successful solotion is to use the directx input system to get the controller parameters and unfortunately there is no stable Force feedback application around. Probably, it must be prepared for every software. And there is even no commercial product to be integrated to gaming software.

Thanks
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks