WIP: Wacom twist support for GHOST #107729

Draft
YimingWu wants to merge 6 commits from ChengduLittleA/blender:ghost_twist into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 9dbfb4d80b - Show all commits

View File

@ -976,7 +976,7 @@ GHOST_TSuccess GHOST_WindowWin32::getPointerInfo(
if (pointerPenInfo[i].penMask & PEN_MASK_ROTATION) {
/* POINTER_PEN_INFO specifies rotation range to be [0,359], convert to radiant here. */
outPointerInfo[i].tabletData.Twist = ((float)pointerPenInfo[i].rotation / 360.0f) * M_PI_2;
outPointerInfo[i].tabletData.Twist = ((float)pointerPenInfo[i].rotation / 360.0f) * M_PI * 2;
/* Debug only. */
printf("Twist (ink): %f\n", outPointerInfo[i].tabletData.Twist);
}