|
|
|
@ -120,7 +120,7 @@ void ThumbWheel::_handleEvent(hidpp20::ThumbWheel::ThumbwheelEvent event) |
|
|
|
|
_last_touch = !_last_touch; |
|
|
|
|
auto action = _config.touchAction(); |
|
|
|
|
if(action) { |
|
|
|
|
if(_last_proxy) |
|
|
|
|
if(_last_touch) |
|
|
|
|
action->press(); |
|
|
|
|
else |
|
|
|
|
action->release(); |
|
|
|
@ -297,4 +297,4 @@ const std::shared_ptr<actions::Action>& ThumbWheel::Config::tapAction() const |
|
|
|
|
const std::shared_ptr<actions::Action>& ThumbWheel::Config::touchAction() const |
|
|
|
|
{ |
|
|
|
|
return _touch_action; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|