LAN with Multiple ZDoom Windows?

Talk about multiplayer ZDoom games here.
Forum rules
Image

Re: LAN with Multiple ZDoom Windows?

Postby edward850 » Wed Oct 15, 2014 5:23 am

GooberMan wrote:Alternately, XInputEnable might be called on focus/defocus by ZDoom somewhere.

Sure enough, in FXInputManager::WndProcHook. Hmm, if all it takes is perhaps a -neveridle parameter and some checks to make sure window focus is never checked or something like that, I might consider throwing this in. There also needs to be restrictions on which controller is interfaced (because at the moment, all controllers are technically valid), but that shouldn't be too hard to add.
User avatar
edward850
[netcode intensifies]
 
Joined: 19 Jul 2005
Location: New Zealand

Re: LAN with Multiple ZDoom Windows?

Postby GooberMan » Wed Oct 15, 2014 5:53 am

Should just be a matter of an options menu that selects which controller you're using. Be aware though that if you're trying to do it in a generic manner that it might be difficult. I picked up a 360 wireless receiver the other day for that code I mentioned, and both XInput and DirectInput provide identical information with all their query functions for each connected controller. Append the controller index to the name for XInput devices should work just well for ZDoom's purposes, but I need to dig far deeper for what I was looking at.
User avatar
GooberMan
Best taken in small quantities
 
Joined: 08 Aug 2003
Location: Helsinki, Finland

Previous

Return to Networking

Who is online

Users browsing this forum: No registered users and 1 guest