Make eraser pressure sensitive

This commit is contained in:
Yousef Khadadeh 2026-05-25 14:46:22 +03:00
parent ad6f942a34
commit c12cd14f6e
9 changed files with 244 additions and 176 deletions

View file

@ -62,6 +62,7 @@ nlohmann::json GlobalConfig::get_config_json(const InputManager& input) const {
toRet["themeInUse"] = themeCurrentlyLoaded;
toRet["defaultCanvasBackgroundColor"] = defaultCanvasBackgroundColor;
toRet["flipZoomToolDirection"] = flipZoomToolDirection;
toRet["realTimeEraser"] = realTimeEraser;
#ifndef __EMSCRIPTEN__
toRet["checkForUpdates"] = checkForUpdates;
#endif
@ -132,6 +133,7 @@ void GlobalConfig::set_config_json(InputManager& input, const nlohmann::json& j,
if(version >= VersionNumber(0, 3, 0))
try{j.at("defaultCanvasBackgroundColor").get_to(defaultCanvasBackgroundColor);} catch(...) {}
try{j.at("flipZoomToolDirection").get_to(flipZoomToolDirection);} catch(...) {}
try{j.at("realTimeEraser").get_to(realTimeEraser);} catch(...) {}
#ifndef __EMSCRIPTEN__
try{j.at("checkForUpdates").get_to(checkForUpdates);} catch(...) {}
#endif