Add HiresScroll destructor
This commit is contained in:
parent
b554d32cf3
commit
a8e2ecbcd7
|
@ -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();
|
||||
|
|
|
@ -29,6 +29,7 @@ namespace features
|
|||
{
|
||||
public:
|
||||
explicit HiresScroll(Device* dev);
|
||||
~HiresScroll();
|
||||
virtual void configure();
|
||||
virtual void listen();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user