mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 19:26:39 +02:00
17 lines
328 B
C
17 lines
328 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <functional>
|
||
|
|
|
||
|
|
class SecondaryMouseButtonsHook
|
||
|
|
{
|
||
|
|
public:
|
||
|
|
SecondaryMouseButtonsHook(std::function<void()>);
|
||
|
|
void enable();
|
||
|
|
void disable();
|
||
|
|
|
||
|
|
private:
|
||
|
|
static HHOOK hHook;
|
||
|
|
static std::function<void()> callback;
|
||
|
|
static LRESULT CALLBACK SecondaryMouseButtonsProc(int, WPARAM, LPARAM);
|
||
|
|
};
|