Use assignment-style initialization in OneShot

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1121/head
Michael Richters 3 years ago
parent 535a4e8e90
commit 71a09389bf
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -187,21 +187,21 @@ class OneShot : public kaleidoscope::Plugin {
// --------------------------------------------------------------------------
// Configuration variables
uint16_t timeout_{2500};
uint16_t hold_timeout_{250};
int16_t double_tap_timeout_{-1};
uint16_t timeout_ = 2500;
uint16_t hold_timeout_ = 250;
int16_t double_tap_timeout_ = -1;
uint16_t stickable_keys_{uint16_t(-1)};
bool auto_modifiers_{false};
bool auto_layers_{false};
uint16_t stickable_keys_ = -1;
bool auto_modifiers_ = false;
bool auto_layers_ = false;
// --------------------------------------------------------------------------
// State variables
KeyAddrBitfield temp_addrs_;
KeyAddrBitfield glue_addrs_;
uint16_t start_time_{0};
KeyAddr prev_key_addr_{invalid_key_addr};
uint16_t start_time_ = 0;
KeyAddr prev_key_addr_ = invalid_key_addr;
// --------------------------------------------------------------------------
// Internal utility functions

Loading…
Cancel
Save