check windows 10 s mode policy enforcement and disable wintab dll, implement windows ink
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user