Digitizing WinTab Context

This commit is contained in:
yaw-man 2022-08-09 15:05:09 -03:00
parent 47105d3aa2
commit dd7cac4e64
1 changed files with 11 additions and 11 deletions

View File

@ -54,7 +54,7 @@ private:
if (hctx) { gpWTClose(hctx); } if (hctx) { gpWTClose(hctx); }
ctx.lcOptions |= CXO_SYSTEM; ctx.lcOptions |= CXO_SYSTEM;
gpWTInfoA(WTI_DEFSYSCTX, 0, &ctx); gpWTInfoA(WTI_DEFCONTEXT, 0, &ctx);
ctx.lcOptions |= CXO_MESSAGES; //TODO: checker çela ctx.lcOptions |= CXO_MESSAGES; //TODO: checker çela
ctx.lcPktData = PACKETDATA; ctx.lcPktData = PACKETDATA;
ctx.lcPktMode = PACKETMODE; ctx.lcPktMode = PACKETMODE;
@ -66,19 +66,19 @@ private:
gpWTInfoA(WTI_DEVICES, DVC_NPRESSURE, &TabletPressure); gpWTInfoA(WTI_DEVICES, DVC_NPRESSURE, &TabletPressure);
ctx.lcInOrgX = 0; ctx.lcInOrgX = 0;
ctx.lcInOrgY = 0;
ctx.lcInOrgZ = 0;
ctx.lcInExtX = TabletX.axMax; ctx.lcInExtX = TabletX.axMax;
ctx.lcInExtY = TabletY.axMax; ctx.lcOutOrgX = 0;
ctx.lcInExtZ = TabletZ.axMax; ctx.lcOutExtX = TabletX.axMax;
maxPressure = TabletPressure.axMax;
ctx.lcOutOrgX = GetSystemMetrics(SM_XVIRTUALSCREEN); ctx.lcInOrgY = 0;
ctx.lcOutOrgY = GetSystemMetrics(SM_YVIRTUALSCREEN); ctx.lcInExtY = TabletY.axMax;
ctx.lcOutExtX = GetSystemMetrics(SM_CXVIRTUALSCREEN); ctx.lcOutOrgY = 0;
ctx.lcOutExtY = -GetSystemMetrics(SM_CYVIRTUALSCREEN); ctx.lcOutExtY = TabletY.axMax;
ctx.lcInOrgZ = 0;
ctx.lcInExtZ = TabletZ.axMax;
ctx.lcOutOrgZ = 0; ctx.lcOutOrgZ = 0;
ctx.lcOutExtZ = ctx.lcInExtZ; ctx.lcOutExtZ = TabletZ.axMax;
hctx = gpWTOpenA(hwnd, &ctx, FALSE); hctx = gpWTOpenA(hwnd, &ctx, FALSE);