The Official Saitek Forum  

Go Back   The Official Saitek Forum > General > X52 Pro MFD Plug-in/SDK discussion
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 17th May 2010, 23:15
rampagemt rampagemt is offline
Registered User
 
Join Date: May 2010
Posts: 2
DirectOutput Designer Application

Hello,

I am programmer from Germany working on a DirectOutput Designer Application.

The Application makes it possible to define Pages and uses events from games (currently lock-on only) to trigger actions like switching certain LEDs or displaying texts. It allows to connect Saitek Profiles to a configuration and certain pages and to save or load a configuration as "DirectOutput-Profile".

Currently the application is developed under java using JNA to access the directoutput.dll. I can map most of the functions and the features of my programm work well with the X52Pro. The only problem I encounter is the identification of the device connected.

As I understood the Device only holds a GUID from which I have to determine the device type and its abilities by myself.

To get the GUID from a device I use
Code:
DirectOutput_GetDeviceType(IN void* hDevice, OUT LPGUID pGdDevice);
My current Problem is the mapping of the GUID-Structure. I have currently mapped it as follows:
Code:
int, short, short, byte[8]
The GUID of X52Pro and what i get from the OUT Parameter differs:
Code:
29DAD506-F93B-4f20-85FA-1E02C04FAC17 29dad506-fffff93b-4f20-ffffff85fffffffa1e2ffffffc04fffffffac17
Maybe someone can help me out with the correct mapping?

I attached some pictures of the Application. But the Frontend isnt completely finished yet.

Greetings
rampage
Attached Images
   
Reply With Quote
  #2  
Old 18th May 2010, 09:27
DPursey DPursey is offline
Mad Catz Staff Member
 
Join Date: Mar 2008
Posts: 3
First of all the GUID-Structure looks correct and secondly it also looks like all the information is in there.

29DAD506-F93B-4f20-85FA-1E02C04FAC17
29dad506-fffff93b-4f20-ffffff85fffffffa1e2ffffffc04fffffffac17

So I think it's the way you are turning the data in to a string that is causing the problem.

Quote:
Originally Posted by http://msdn.microsoft.com/en-us/library/aa373931%28VS.85%29.aspx

Members

Data1

Specifies the first 8 hexadecimal digits of the GUID.

Data2
Specifies the first group of 4 hexadecimal digits.

Data3
Specifies the second group of 4 hexadecimal digits.

Data4
Array of 8 bytes. The first 2 bytes contain the third group of 4 hexadecimal digits. The remaining 6 bytes contain the final 12 hexadecimal digits.
Looking at what you have already :-
  • Data1 = Correct
  • Data2 = Correct but you need to only print the first 4 digits
  • Data3 = Correct
  • Data4 = Needs formatting correctly

I hope this helps
Dar
Reply With Quote
  #3  
Old 18th May 2010, 13:04
rampagemt rampagemt is offline
Registered User
 
Join Date: May 2010
Posts: 2
Thanks for the feedback. I believe the problem is that java has no unsigned numbers. Guess i got to convert the numbers to unsigned before converting them to a hex string. That would explain why field 3 is actually converted correctly while field 2 is not.

Last edited by rampagemt : 18th May 2010 at 13:07.
Reply With Quote
  #4  
Old 19th May 2010, 00:50
T-rex600N Pilot T-rex600N Pilot is offline
Registered User
 
Join Date: May 2009
Posts: 10
Looks promising,
Any change that there would be a way to let TS3 recognize one of the
MFD buttons so you can use that button to scroll trough the channels on the server your on?

Anyway, i am definitely going to keep an eye on this thread.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:46.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) Saitek 2001