   Game input
  I have been developing a gui to use in games and it has worked fine until now.  The only problem I am having is that the input is delayed.  As framerate drops so does the chance of actually getting input.  Say if I click the mouse it does not always select it because theres more things happening and the mouse might not be donw when it gets to the gui element process function.  The same thing goes with the key input.  I am right now getting input every time I hit the process function for every element, but I have also tried getting the input once before the update functions and use that for every element.  Does anyone have any suggestions on how I could fix this?Thanks, vbuser   
  If you are using DirectInput, you need to use the buffered input functions.  Here is a tutorial.  (Note: That tutorial states it is archived content.  However, DirectInput 8 is still the most current version.  When using DirectX 9, you must define DirectInput's version to 0x0800.)  Most every input system has some way of getting buffered input.  That is, any keyboard or mouse input events that happen in between your calls to the system are saved up and then given to you in the order they came in.  Heck, even the Windows Console has buffered mouse and keyboard input.What library are you using?~BenDilts( void );   ;  I am using the SDL library for input,sound and window creation so I will find out how to do buffered input with it.  Thanks for the reply and I try to get it working.Cya,vbuser   