DInput

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

DInput

Post by dr.ridu »

hi all,

I'm running a DX9-application under W2k and I'm desperately trying to get the Spacenavigator working.
I've looked over the examples and decided to use the DInput-poll-example.

I've done stuff like this before but that one seems too hard for me ?

I've integrated InitDI8, EnumDevicesCB, EnumAxesCB and DlgProc (normally i would like to use WndProc but i decided to try DlgProc first). But I can't get into DlgProc at all. I just need the translation values. Isn't there an easier way to get this task done ? What can I do ?

thanx a lot in advance
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

WM_INPUTExample

Post by dr.ridu »

Ich habe es jetzt auch mal mit dem WM_INPUTExample probiert, aber das bekomme ich nicht mal im Original gestartet. Eine MessageBox sagt mir:
"Der Prozedureinsprungspunkt "GetRawInputData" wurde in der DLL "USER32.dll" nicht gefunden".

Weiss jemand Rat ?
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

WM_INPUTExample nur ab WXP ?

Post by dr.ridu »

Verstehe ich das richtig, dass dass WM_INPUTExample gar nicht für W2k funktioniert, weil es die GetRawInputData erst ab WXP gibt ?
Und ist es eigentlich sinnvoller ins englische Forum zu schreiben, weil man dort mehr Leute erreicht ?

gruesse
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

DINPUT zur WndProc ?

Post by dr.ridu »

ich bin jetzt dazu übergegangen das DINPUT_Poll Beispiel so umzubauen, dass ich das Dialoffenster rausbekomme und alle Daten in die WndProc umgeleitet werden bzw. von mir aus kann es gerne einen eigenen Eventhandler geben, aber eben ohne das zweite Fenster. Hat jemand eine Idee ? Ich sehe noch nicht wirklich, wo mein Ansatzpunkt ist.

Ist es diese Zeile ?

Code: Select all

g_pDevices[0]->pUsbHidDevice->SetCooperativeLevel( g_pDevices[0]->hDlg, DISCL_NONEXCLUSIVE | DISCL_BACKGROUND);
Sollte ich vielleicht hier als anstatt g_pDevices[0]->hDlg vielleicht lieber hWnd, also das windowhandle übergeben ? Oder sollte ich lieber in der Zeile

Code: Select all

g_pDevices[newIndex]->hDlg = CreateDialogParam( hInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DlgProc, (LPARAM)g_pDevices[newIndex] );
Statt CreateDialogParam einfach das Windowhandle übergeben ?

hmmmmmm....
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

Geschafft

Post by dr.ridu »

hallo alle,

danke für das Interesse und die zahlreichen Antworten ;-)
Ich habs grade geschafft.

liebe gruesse
ngomes
Moderator
Moderator
Posts: 3344
Joined: Mon Nov 27, 2006 7:22 am
Contact:

Post by ngomes »

Hi dr.ridu,

The "Developer's" forum are English only. That's not just for the benefit for the 3Dx developers manning the dev forums but also for all others that want to develop for 3D mice and come here looking for assistance.
dr.ridu
Posts: 10
Joined: Thu May 08, 2008 2:55 pm

uppps

Post by dr.ridu »

uuups,

I'm sorry. I was confused by having the choice between an english and a german Forum....
That's why nobody answered ;-)
O.K, but it doesn't matter anymore because my problems are fixed. Next time I'll know....

greenthings
Post Reply