I am learning DirectX from this site http://www.rastertek.com/ and also SharpDX. I decided to do is simulteneously. It means, every tutorial I develop using SharpDX. Until tutorial 13 I have succeded to implement the code similatr to the original. However, I am stuck with DirectInput, related to the mouse. Below I attached the original tutorial written in C++ and my implementation of it. In original when I move the mouse it shows me right coordinates of the window. In mine only relative or absolute. The issue is I don't understand why it works there and in mine.