![]() Window->clientToScreenIntern(mousePos.x, mousePos. Normal cursor operation: send mouse position in window You might need to restart afterwards but that fixed it for me. Window->getCursorGrabInitPos(x_cur, -1375,7 +1402,6 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) To Uninstall SmoothMouse System menu (the Apple logo) -> System Preferences Find SmoothMouse in the bottom section and open it Open the About tab in the SmoothMouse settings and click Uninstall. + m_cursorPrevLocation_x=x_mouse + m_cursorPrevLocation_y=y_mouse SetMouseCursorPosition(x_cur, y_cur) /* wrap */ Window->clientToScreenIntern(x_mouse, y_mouse, x_cur, y_cur) Y_mouse += -[event -1365,6 +1390,8 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) ![]() Window->setCursorGrabAccum(x_accum, y_accum) Y_accum += -m_cursorDelta_y //Strange Apple implementation (inverted coordinates for the deltaY). GHOST_TInt32 x_accum, y_accum, x_cur, y_cur, x, -1352,7 +1378,6 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) + NSPoint mousePos = + GHOST_TInt32 x_mouseDiff = mousePos.x - m_cursorPrevLocation_x + GHOST_TInt32 y_mouseDiff = mousePos.y - m_cursorPrevLocation_y + // Check if the mouse has been hijacked by an external program like Remote desktop + // When the mouse is hijacked mouseDiff is not 0 but there are cases where the hijacked event + // is split in two, that is handled by cursorPrevDelta + if ((x_mouseDiff != 0 || y_mouseDiff != 0 || m_cursorPrevDelta_x != 0 || m_cursorPrevDelta_y != 0) + & window->getCursorGrabModeIsWarp()) + m_cursorPrevLocation_x=mousePos.x + m_cursorPrevLocation_y=mousePos.y +Ĭase GHOST_kGrabHide: //Cursor hidden grab operation : no cursor -1329,7 +1356,6 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr)Ĭase GHOST_kGrabWrap: //Wrap cursor at area/window boundaries M_displayManager = new GHOST_DisplayManagerCocoa -1311,6 +1315,29 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) M_needDelayedApplicationBecomeActiveEventProcessing = false + m_cursorPrevDelta_x=0 + m_cursorPrevDelta_y=0 + m_cursorPrevLocation_x=0 + m_cursorPrevLocation_y=0 + GHOST_TInt32 m_cursorPrevDelta_x, m_cursorPrevDelta_y + float m_cursorPrevLocation_x, m_cursorPrevLocation_y ĭiff -git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index b9686e5.6d2c2dc 100644 - a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm -349,6 +349,10 GHOST_SystemCocoa::GHOST_SystemCocoa() Acceleration should be left at 0, while sensitivity can be tuned to your preference. Is there still no software available to disable mouse. GHOST_TInt32 m_cursorDelta_x, m_cursorDelta_y The Cursor settings can then be adjusted to your liking. Ugh Sierra seems to have broken SmoothMouse and now my cursor movement is extremely slow on my G402 even with the DPI meter cranked up. ![]() * Needed because cocoa event delta cursor move takes setCursorPosition changes too. Diff -git a/intern/ghost/intern/GHOST_SystemCocoa.h b/intern/ghost/intern/GHOST_SystemCocoa.h index 3d6b40e.d216378 100644 - a/intern/ghost/intern/GHOST_SystemCocoa.h +++ b/intern/ghost/intern/GHOST_SystemCocoa.h -296,6 +296,8 protected: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |