| 1234 | #endif |
| 1235 | |
| 1236 | void RenderViewImpl::onGLFWMouseScrollCallback(GLFWwindow* window, double x, double y) |
| 1237 | { |
| 1238 | EventMouse event(EventMouse::MouseEventType::MOUSE_SCROLL); |
| 1239 | float cursorX = transformInputX(_mouseX); |
| 1240 | float cursorY = transformInputY(_mouseY); |
| 1241 | event.setScrollData((float)x, -(float)y); |
| 1242 | event.setMouseInfo(cursorX, cursorY, checkMouseButton(window)); |
| 1243 | Director::getInstance()->getEventDispatcher()->dispatchEvent(&event); |
| 1244 | } |
| 1245 | |
| 1246 | void RenderViewImpl::onGLFWKeyCallback(GLFWwindow* /*window*/, int key, int /*scancode*/, int action, int /*mods*/) |
| 1247 | { |
no test coverage detected