Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / db Set Control Device

Author
Message
Ashy
19
Years of Service
User Offline
Joined: 1st Nov 2005
Location:
Posted: 19th Sep 2006 05:54
It does work yeah? if it was dbpro i'd be thinking its just me.. but since its the gdk i thought i'd ask since I can't seem to get it to work.

I use the checklist to find the control devices and print it to a file so i can easily see.. i get two which is right; ch pro pedals and saitek x52 flight stick (usb). But I can't set the control device to the saitek one.. i've tried;

dbSetControlDevice(const_cast<char*>(Controllers[1].strDevice_Name.c_str())); //<-- which is the saitek
dbSetControlDevice("Saitek X52 Flight Stick (USB)");

But can't get it to work, so when i try and set it while the checklist is still up using: dbSetControlDevice(dbChecklistString(2)); //<-- 2 being the saitek the program crashes.

Any ideas?
Charles
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: Phoenix, AZ USA
Posted: 21st Sep 2006 11:20
I seem to be having the same problem. You should report it in the "[Sticky] bugs" section so that they will fix it in their next release.
Ancient Lady
Valued Member
20
Years of Service
User Offline
Joined: 17th Mar 2004
Location: Anchorage, Alaska, USA
Posted: 30th Sep 2006 05:19
I have had no problem using the dbSetControlDevice command.

The game set I am working on is set to recognise available control devices (using dbPerformChecklistControlDevices). It allows the assignment of available device to joystick or wheel and then the calibration of the device.

The game play then allows dynamic selection of keyboard, joystick or wheel to the control device. (I might make some of these classes available in the future.)

The only problem I have run into is when I have two Logitech wheels connected at the same time. One is a Logitech Momo and the other is a Logitech Wingman. When both are connecte, dbPerformChecklistControlDevices recognises both, but when the Momo Wheel is selected with dbSetControlDevice, it's actions are not detected. It doesn't matter which USB ports they are connected to. The Wingman wheel works fine, no matter how many wheels are attached. The Momo wheel works fine if the other is not connected.

In either case, the joystick works fine.

Once the game is running, I can dynamically switch between keyboard, joystick and wheel control without any issues.

What does your code look like? If you dump the results from dbPerformChecklistControlDevices, does it show your device? Are you using the correct index (the first in the list is 1, which flies in the face of standard C array indexing)?

If it might help, I can try to extract the code that works.

Good Luck,
Ancient Lady

Cheers,
Ancient Lady

Login to post a reply

Server time is: 2024-11-19 08:41:59
Your offset time is: 2024-11-19 08:41:59