Fix warnings from Visual C++'s static analysis.
Use project references instead of linking the library by path.
Move Xinput infos right.
Rename some functions to camelCase and fix compiler warnings.