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();
|
_last_scroll = std::chrono::system_clock::now();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HiresScroll::~HiresScroll()
|
||||||
|
{
|
||||||
|
_device->hidpp20().removeEventHandler(MOVE_EVENTHANDLER_NAME);
|
||||||
|
}
|
||||||
|
|
||||||
void HiresScroll::configure()
|
void HiresScroll::configure()
|
||||||
{
|
{
|
||||||
auto mode = _hires_scroll->getMode();
|
auto mode = _hires_scroll->getMode();
|
||||||
|
|
|
@ -29,6 +29,7 @@ namespace features
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
explicit HiresScroll(Device* dev);
|
explicit HiresScroll(Device* dev);
|
||||||
|
~HiresScroll();
|
||||||
virtual void configure();
|
virtual void configure();
|
||||||
virtual void listen();
|
virtual void listen();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user