   Global Mouse Coords
  One of the few things I like in windows is how you can call GetAsyncKeyState() within any file and any class that includes windows.h. However i am finding it difficult to implement such a disign with the Mouse Coords. I have 2 variables that keep track of the X and Y of the mouse, but the problem is acessing them through other forms in the project. declaring them static works unless you have inclusion gaurds, currently im thinking that about the only fix is to have all the classes with mouse sensitive code with a seperate .cpp, is there any other way around this?EDIT: actually that doesn't work either [sad]   
  You could make a Mouse class and have an object "own" it (for updating, etc).  Then just query the owner class for the mouse or the mouse data you are interested in.  OR you could pass a pointer to the mouse object to whichever objects need to know about the mouse.  It really depends on how you have your project designed and what your needs are but my suggestion is what I've done quite often.   ;  Yeah that is what i have done in the past as well but passing in an "input" class to EVERY SINGLE OBJECT that needs to know if it has been clicked on is a serious pain, especially when a majority of my classes get all their info from XML files and scripts. Im trying to keep the constructor of the classes simple and eventually all they will need is their name and the XML file will do the rest (for all the unique objects, which are the ones that will recive input anyhow), so adding an input* input_H parameter to all these objects seems redundant because its not like the input_H ever changes. I sappose I could just make an Object_Updater, all input based classes could then add themselves to a list then the Object_Updater would loop through and inform all of the objects in the list where the mouse is. That means more pointers, more dynamic memory allocation and deallocatoin, ug. A simple sullution seems to be too much to ask at this point. Ill see if I can't come up with an easily managable class list system but I would still like to hear any more ideas.   ;  How about this?  Create a class all objects that need mouse input can inherit from (using static mouse stuff so it's not duplicated) so it can just query the mouse with no special set up or parameter passing.  You'll still need an owner class that will handle the updating and so on so you don't duplicate work.  OR you could just make an entirely static class for your mouse.  So any object that needs mouse input can simply include the header and then do a call like Mouse::GetMousePosition(); or something to that effect.   ;  Hmm yes the second Idea sounds very good, well im off to go test it out. thx a ton =)Yeah that did it. Thanks again [grin][Edited by - raptorstrike on December 15, 2005 8:16:29 PM]