11/6/2022 0 Comments Smoothmouse sierraWindow->clientToScreenIntern(mousePos.x, mousePos. In order to run my preferred mouse, the very comfortable Microsoft Sculpt Ergonomic Mouse (L6V-00001), I had installed Smoothmouse to adjust acceleration. Normal cursor operation: send mouse position in window Window->getCursorGrabInitPos(x_cur, -1375,7 +1402,6 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) + 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 To set the acceleration open the terminal and type or paste: defaults write. M_displayManager = new GHOST_DisplayManagerCocoa -1311,6 +1315,29 GHOST_TSuccess GHOST_SystemCocoa::handleMouseEvent(void *eventPtr) GlobalPreferences Whenever you move the mouse speed setting in preferences you will have to re-set the mouse acceleration. 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() Smoothmouse sierra mac#I switch back and forth between my Mac and my Windows Bootcamp a lot. GHOST_TInt32 m_cursorDelta_x, m_cursorDelta_y SmoothMouse no longer works, and the developers are not updating it for Sierra. * 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 |