mirror of
https://github.com/narzoul/DDrawCompat
synced 2024-12-30 08:55:36 +01:00
29 lines
562 B
C++
29 lines
562 B
C++
#pragma once
|
|
|
|
#include <functional>
|
|
|
|
#include <Windows.h>
|
|
|
|
namespace Overlay
|
|
{
|
|
class Control;
|
|
class Window;
|
|
}
|
|
|
|
namespace Input
|
|
{
|
|
struct HotKey;
|
|
|
|
bool operator<(const HotKey& lhs, const HotKey& rhs);
|
|
|
|
Overlay::Control* getCapture();
|
|
Overlay::Window* getCaptureWindow();
|
|
POINT getCursorPos();
|
|
HWND getCursorWindow();
|
|
POINT getRelativeCursorPos();
|
|
void installHooks();
|
|
void registerHotKey(const HotKey& hotKey, std::function<void(void*)> action, void* context, bool onKeydown = true);
|
|
void setCapture(Overlay::Control* control);
|
|
void updateCursor();
|
|
}
|