|
2 registered members (Quad, AndrewAMD),
385
guests, and 1
spider. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Assigning on_* events(C++ Engine SDK)
#461550
08/10/16 23:43
08/10/16 23:43
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
Hello,
I am trying to assign some ev->on_* using the engine SDK. They seem to be simple EVENT pointers, which i tried to assign functions by casting their pointers to EVENT*, which compiles and runs fine with no crashes whatsoever but the events do not trigger.
Particular events i am trying to assign are on_resize on_d3dreset on_d3dlost.
Anyone point me in right direction?
3333333333
|
|
|
Re: Assigning on_* events(C++ Engine SDK)
[Re: Ch40zzC0d3r]
#461552
08/11/16 00:40
08/11/16 00:40
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
tried that too still on_resize and on_1 etc still not firing.
Okay dammit, i forgot managed the message loop myself.
Last edited by Quad; 08/11/16 00:41.
3333333333
|
|
|
Re: Assigning on_* events(C++ Engine SDK)
[Re: Ch40zzC0d3r]
#461562
08/11/16 08:58
08/11/16 08:58
|
Joined: Oct 2007
Posts: 5,210 İstanbul, Turkey
Quad
OP
Senior Expert
|
OP
Senior Expert
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
|
I added video_set to WM_SIZE handler and added original engine message loop to the end of my custom one and use on_d3d* messages. It kind of works fine except i have to find a way to determine when to handle the input on my own or let the engine handle it.
3333333333
|
|
|
|
|
|