check windows 10 s mode policy enforcement and disable wintab dll, implement windows ink

This commit is contained in:
2018-10-13 15:58:24 +02:00
parent ce344126be
commit da5041b187
5 changed files with 192 additions and 37 deletions

View File

@@ -126,6 +126,7 @@ bool WacomTablet::init(HWND hWnd)
if (ret != sizeof(LOGCONTEXTA))
return false;
#endif // _DEBUG
LOG("TabletInit");
g_hCtx = TabletInit(hWnd);
if (!g_hCtx)
{
@@ -166,6 +167,9 @@ void WacomTablet::handle_message(HWND hwnd, UINT Msg, WPARAM wParam, LPARAM lPar
static POINT ptOld, ptNew;
static UINT prsOld, prsNew;
if (!gpWTPacket)
return;
if (gpWTPacket((HCTX)lParam, (UINT)wParam, &pkt))
{
if (HIWORD(pkt.pkButtons) == TBN_DOWN)