Apply clang-format
This commit is contained in:
parent
b83b01c0ca
commit
cf96a92e09
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user