Page 1 of 2
LAN with Multiple ZDoom Windows?
Posted: Sat Jun 28, 2014 6:20 pm
by Kaal979
How is it possible to start a LAN coop or
similar with only one system and monitor?
Just imagine one of the new widescreens
and two peoples whod love to play coop on it!
And is this especially possible with ZDL?
Re: LAN with Multiple ZDoom Windows?
Posted: Sat Jun 28, 2014 6:51 pm
by wildweasel
The problem with this approach is that only one ZDoom window can be active at a time, because nearly all operating systems only recognize input from one window at once. So unless you like taking turns moving the two players around, no, this is a bad idea.
Re: LAN with Multiple ZDoom Windows?
Posted: Sat Jun 28, 2014 6:56 pm
by edward850
Also you
Do not
Have to start
A new line
Every few
Words.
It is very
Annoying to read
Posts phrased in this
Format.
Re: LAN with Multiple ZDoom Windows?
Posted: Sat Jun 28, 2014 7:08 pm
by Kaal979
But how about two gamepads - werent this a simple way?
Re: LAN with Multiple ZDoom Windows?
Posted: Sat Jun 28, 2014 7:16 pm
by wildweasel
Kaal979 wrote:But how about two gamepads - werent this a simple way?
No, because ZDoom will not recognize input if it is not the active window. It doesn't matter what device you're controlling it with.
Re: LAN with Multiple ZDoom Windows?
Posted: Sun Jun 29, 2014 9:00 am
by Kaal979
But .. but its too cool to be untrue!
Re: LAN with Multiple ZDoom Windows?
Posted: Sun Jun 29, 2014 9:34 am
by wildweasel
Kaal979 wrote:But .. but its too cool to be untrue!
Then talk to the people at Microsoft or Apple and complain to them. It's part of the operating system and it won't change.
Re: LAN with Multiple ZDoom Windows?
Posted: Tue Oct 14, 2014 1:24 pm
by SyntherAugustus
It would be nice if Zdoom was coded to support this. Modern games like Borderlands and even Doomsday Engine support this sort of thing.
Re: LAN with Multiple ZDoom Windows?
Posted: Tue Oct 14, 2014 1:41 pm
by mallo
This is a request that has been requested many, many times. I believe there is a reason why it wasn't listened to yet.
Re: LAN with Multiple ZDoom Windows?
Posted: Tue Oct 14, 2014 2:15 pm
by wildweasel
Thing is, in order to support this sort of thing, I think the entire input handler would need to be rewritten, and I'm not sure anybody feels like doing that.
Re: LAN with Multiple ZDoom Windows?
Posted: Wed Oct 15, 2014 2:49 am
by GooberMan
Uh, it's just a flag in DirectInput/XInput to allow background input.
No idea about non-Windows platforms though.
Re: LAN with Multiple ZDoom Windows?
Posted: Wed Oct 15, 2014 3:12 am
by edward850
Do you mind telling me what this flag is? I actually tried this before and literally could not find it.
Re: LAN with Multiple ZDoom Windows?
Posted: Wed Oct 15, 2014 3:57 am
by GooberMan
I was literally looking at this code last night at home for an unrelated thing, and it's gone from my head.
Let me Google...
For Direct Input devices, you have
SetCooperativeLevel.
XInput should just work if you poll it while the window isn't active.
Re: LAN with Multiple ZDoom Windows?
Posted: Wed Oct 15, 2014 4:12 am
by edward850
GooberMan wrote:XInput should just work if you poll it while the window isn't active.
Oddly enough, no. With ZDoom at least, XInput only seems to have updated events only when the window is focused. Obviously there must be a flag for this somewhere because Borderlands already seems to do this.
Re: LAN with Multiple ZDoom Windows?
Posted: Wed Oct 15, 2014 4:17 am
by GooberMan
We do it here too.
XInputGetState must be returning some kind of useful information in this case. Alternately,
XInputEnable might be called on focus/defocus by ZDoom somewhere.