   [VB MDX] How do i read mouse X and Y coordinates? [Solved]
  I have troubles reading x and y values from the mouse in my fullscreen application.initialization:Dim state as MouseStateDim buttons As Byte()Dim Mouse As DirectInput.DeviceMouse = New DirectInput.Device(SystemGuid.Mouse)Mouse.SetCooperativeLevel(Form1, CooperativeLevelFlags.Foreground Or CooperativeLevelFlags.Exclusive)Mouse.SetDataFormat(DeviceDataFormat.Mouse)Mouse.Acquire()My sub for reading input:    Public Sub CheckInput()   state = Mouse.CurrentMouseState   buttons = state.GetMouseButtons()   If buttons(1) <> 0 Then  MsgBox(state.X & " " & state.Y)   End If    End SubThe problem is the MsgBox always gives me 0 0   
  Forgot it only reports the difference in x & y coordinates since the state was last read. Problem solved.   