disable brush pressure averaging, implement single finger for camera rotation when touch draw is disabled

This commit is contained in:
2018-10-13 17:03:15 +02:00
parent da5041b187
commit 64ce471ed8
7 changed files with 36 additions and 12 deletions

View File

@@ -561,15 +561,15 @@ int main(int argc, char** argv)
LOG("show main window");
ShowWindow(hWnd, SW_NORMAL);
// if (!sandboxed)
// {
// LOG("init WinTab");
// WacomTablet::I.init(hWnd);
// }
// else
// {
// LOG("SKIP init WinTab");
// }
if (!sandboxed)
{
LOG("init WinTab");
WacomTablet::I.init(hWnd);
}
else
{
LOG("SKIP init WinTab");
}
LOG("change icon");
SendMessage(hWnd, WM_SETICON, ICON_SMALL,
@@ -763,6 +763,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
// }
case WT_PACKET:
{
App::I.set_stylus();
timer_stylus = 0;
std::lock_guard<std::mutex> lock(task_mutex);
tasklist.emplace_back([=] {
@@ -967,6 +968,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
WacomTablet::I.m_ink = true;
WacomTablet::I.m_ink_pen = true;
WacomTablet::I.m_pen_pres = (float)penInfo.pressure / 1024.f;
App::I.set_stylus();
}
break;
default: