Apply clang-format

This commit is contained in:
Rico Tiongson 2020-05-02 01:28:10 +08:00
parent b83b01c0ca
commit cf96a92e09

View File

@ -90,7 +90,10 @@ int main(int argc, char* argv[]) {
commands[i] = config[gesture_swipe_xdokey::command_name[i]];
// correctly parse threshold as float
float threshold = 0.0f;
try { threshold = stof(config["threshold"]); } catch(std::invalid_argument) { }
try {
threshold = stof(config["threshold"]);
} catch (std::invalid_argument) {
}
// create swipe handler
gesture_swipe_xdokey keyswipe(commands, threshold);
// initialize mouse hold gesture handler