Fix device counting in HapticMouse and JoystickOpen routines. 0 is the first item in the list not the last