Input Mode problem

Hey, I’ve faced an input problem. I need to see the mouse on the screen and do some actions, when it’s moved. So, when I set the input mode game only all works right, until I press any mouse button. After that the mouse movement event is activated only if one of the buttons is pressed. But if cursor is hidden then everything is ok. Does anyone know how to fix it?