Original Post
im trying to write an easy to use mouse class. i have a lot of classes and objects which need to poll the mouse for information. instead of creating a mouse object inside each of the objects, or even create a global (bleh) mouse class, is there a way to create 1 mouse class, and have all of the objects inherit from it therefore eliminating the need for multiple instantiations or a global mouse object? ive looked into singletons and static objects. apparently static objects work, but not as well as they should. as for singletons, im a little lost on how they work. i am stuck with the question of can the other objects inherit from it? can anybody help? -thanks