Mouse cursor position on Windows platform

Seems I not able to file an issue, I have sent a feedback. But just in case I keep a post here.


Not sure if this is a Windows only problem.

In 3.2/3.3 the cursor Y is flipped in desktop/CCGLView.cpp

// in onGLFWMouseMoveCallBack or onGLFWMouseScrollCallback
float cursorY = (_viewPortRect.origin.y + _viewPortRect.size.height - _mouseY) / _scaleY;

These caused two problems:
1)
Similar to Touch the cursor should be in UI points, otherwise it cannot be used in Director::convertToGL() in MouseEvent and cannot be used with Node::convertToNodeSpace()

The range of possible cursor X values is different from the range of possible cursor Y values
For example if my screen size is 960x640
EventMouse::getCursorX() will return [0, 959] but EventMouse::getCursorY() would return [1, 640]

// the possible fix would be
float cursorY = (_mouseY - _viewPortRect.origin.y) / _scaleY;

issue created:
http://www.cocos2d-x.org/issues/5896