Add HiresScroll destructor

This commit is contained in:
pixl 2020-08-21 21:46:33 -04:00
parent b554d32cf3
commit a8e2ecbcd7
No known key found for this signature in database
GPG Key ID: 1866C148CD593B6E
2 changed files with 6 additions and 0 deletions

View File

@ -61,6 +61,11 @@ HiresScroll::HiresScroll(Device *dev) : DeviceFeature(dev), _config(dev)
_last_scroll = std::chrono::system_clock::now();
}
HiresScroll::~HiresScroll()
{
_device->hidpp20().removeEventHandler(MOVE_EVENTHANDLER_NAME);
}
void HiresScroll::configure()
{
auto mode = _hires_scroll->getMode();

View File

@ -29,6 +29,7 @@ namespace features
{
public:
explicit HiresScroll(Device* dev);
~HiresScroll();
virtual void configure();
virtual void listen();