This is a fork of the original OIS (Object-Oriented Input System) code and it's the one I use in my projects. It's ready to compile statically in Visual Studio 2008 / 2010 and as a framework in OSX and iOS.