IsMouseVisible implementation for DirectX (fixed)

I made a mistake on my last commit, it works now (tested it).