Digitizing WinTab Context
This commit is contained in:
parent
47105d3aa2
commit
dd7cac4e64
|
@ -54,7 +54,7 @@ private:
|
|||
if (hctx) { gpWTClose(hctx); }
|
||||
|
||||
ctx.lcOptions |= CXO_SYSTEM;
|
||||
gpWTInfoA(WTI_DEFSYSCTX, 0, &ctx);
|
||||
gpWTInfoA(WTI_DEFCONTEXT, 0, &ctx);
|
||||
ctx.lcOptions |= CXO_MESSAGES; //TODO: checker çela
|
||||
ctx.lcPktData = PACKETDATA;
|
||||
ctx.lcPktMode = PACKETMODE;
|
||||
|
@ -66,19 +66,19 @@ private:
|
|||
gpWTInfoA(WTI_DEVICES, DVC_NPRESSURE, &TabletPressure);
|
||||
|
||||
ctx.lcInOrgX = 0;
|
||||
ctx.lcInOrgY = 0;
|
||||
ctx.lcInOrgZ = 0;
|
||||
ctx.lcInExtX = TabletX.axMax;
|
||||
ctx.lcInExtY = TabletY.axMax;
|
||||
ctx.lcInExtZ = TabletZ.axMax;
|
||||
maxPressure = TabletPressure.axMax;
|
||||
ctx.lcOutOrgX = 0;
|
||||
ctx.lcOutExtX = TabletX.axMax;
|
||||
|
||||
ctx.lcOutOrgX = GetSystemMetrics(SM_XVIRTUALSCREEN);
|
||||
ctx.lcOutOrgY = GetSystemMetrics(SM_YVIRTUALSCREEN);
|
||||
ctx.lcOutExtX = GetSystemMetrics(SM_CXVIRTUALSCREEN);
|
||||
ctx.lcOutExtY = -GetSystemMetrics(SM_CYVIRTUALSCREEN);
|
||||
ctx.lcInOrgY = 0;
|
||||
ctx.lcInExtY = TabletY.axMax;
|
||||
ctx.lcOutOrgY = 0;
|
||||
ctx.lcOutExtY = TabletY.axMax;
|
||||
|
||||
ctx.lcInOrgZ = 0;
|
||||
ctx.lcInExtZ = TabletZ.axMax;
|
||||
ctx.lcOutOrgZ = 0;
|
||||
ctx.lcOutExtZ = ctx.lcInExtZ;
|
||||
ctx.lcOutExtZ = TabletZ.axMax;
|
||||
|
||||
hctx = gpWTOpenA(hwnd, &ctx, FALSE);
|
||||
|
||||
|
|
Loading…
Reference in New Issue