Talk:VGUI Screen Creation: Difference between revisions
m (made vgui_screen ent ref a link) |
No edit summary |
||
Line 8: | Line 8: | ||
I would just like to thank Helk and Zipster for fixing my ugly hack of a solution :) My way worked, but their ways are more practical and less likely to cause bugs. Do what they said :-P | I would just like to thank Helk and Zipster for fixing my ugly hack of a solution :) My way worked, but their ways are more practical and less likely to cause bugs. Do what they said :-P | ||
--[[User:TJMonk15|TJMonk15]] 8:05, 28 Jul 2005 (EST) | --[[User:TJMonk15|TJMonk15]] 8:05, 28 Jul 2005 (EST) | ||
Does CS:S bomb use a vgui screen?—'''[[User:Ts2do|ts2do]]''' 14:24, 10 Mar 2006 (PST) |
Revision as of 15:24, 10 March 2006
Moved to "Creating a VGUI Screen" because the Entity description for the Vgui_screen entity needs to have this page. --King2500 15:45, 14 Jul 2005 (PDT)
Fix
The input fix for the VGUI panel is poorly explained and doesn't address the real issue. I actually had to look at the revision history to see why the fix was needed at all before I could explore it further. The real problem is that CInput::ExtraMouseSample
uses a dummy CUserCmd structure that only updates the mouse elements, but leaves the keyboard elements uninitialized at 0. So when g_pClientMode->CreateMove()
is called near the end of the function it calls C_BasePlayer::DetermineVguiInputMode()
with the bad input. This further explains why this function would be called 4 or 5 times, since it's the engine requesting extra mouse samples. Another fix might be to add a new member to the CUserCmd class like bKeybitsvalid
that defaults to true, but can be set to false whenever you do extra mouse samples. That way the validity of the data is stored internally with the structure wherever it may be used and doesn't use a input bit. But that's just my two cents. Zipster
I would just like to thank Helk and Zipster for fixing my ugly hack of a solution :) My way worked, but their ways are more practical and less likely to cause bugs. Do what they said :-P
--TJMonk15 8:05, 28 Jul 2005 (EST)
Does CS:S bomb use a vgui screen?—ts2do 14:24, 10 Mar 2006 (PST)