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 / 2 mice technical problem

Author
Message
axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 24th Jan 2008 10:13 Edited at: 25th Jan 2008 21:45
Hello everyone!

I recently took a look in the directX documentation, because I wished to use two mice independanly in my game, but it says it is impossible, except if I use the windows API for this. So I tried to code this with the raw input system. The problem is, I need to acceed the window procedure of my application to proceed raw data. Is it possible to access this with darkGDK?

EDIT : problem solved. thanks to all
General Reed
18
Years of Service
User Offline
Joined: 24th Feb 2006
Location:
Posted: 24th Jan 2008 20:55
include the darkgdk globals header

CPU: AMD X2 6000+ 3.0ghz GFX: NVIDIA BFG Geforce 8800GTS 640MB OC-550mhz core RAM: 2048mb

axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 25th Jan 2008 00:25
do you mean darkGDK.h? I already included this file...
FERSIS
18
Years of Service
User Offline
Joined: 17th May 2006
Location:
Posted: 25th Jan 2008 12:07
He means #include "globstruct.h"
then you can use g_pGlob pointer to get a lot of data.
cheers
axiagame
16
Years of Service
User Offline
Joined: 6th Dec 2007
Location: far far away...
Posted: 25th Jan 2008 14:27 Edited at: 25th Jan 2008 21:48
ok, I'll try this, and tell you if it works. thank you General Reed and FERSIS

EDIT :
I took a look at the globstruct.h file, and I found a function ptr called "typedef DWORD ( *PTR_ProcessMessages ) ( void );"
I think I must use this function, but the windows message processing fucnton take 4 arguments, this does not match... :S

What really does this function???

re-EDIT :
I found where the function I was looking for was. I managed to replace it by my function, while still calling it at each call of mine. But a problem still remains : darkGDK can read my mouse and keyboard, but my window doesn't react. I mean I can't close it, resize it, etc...

re-re-EDIT :
I found the solution of my problem. I forgot to return the result of the old windowProc function.

here is my corrct code : (sorry for french comments :S)



thank you very much to all of you and to thegamecreators team

Login to post a reply

Server time is: 2024-09-29 09:23:31
Your offset time is: 2024-09-29 09:23:31