mirror of https://github.com/doitsujin/dxvk
39 lines
881 B
C++
39 lines
881 B
C++
#pragma once
|
|
|
|
#include "d3d9_include.h"
|
|
|
|
namespace dxvk {
|
|
|
|
constexpr uint32_t HardwareCursorWidth = 32u;
|
|
constexpr uint32_t HardwareCursorHeight = 32u;
|
|
constexpr uint32_t HardwareCursorFormatSize = 4u;
|
|
constexpr uint32_t HardwareCursorPitch = HardwareCursorWidth * HardwareCursorFormatSize;
|
|
|
|
class D3D9Cursor {
|
|
|
|
public:
|
|
|
|
void UpdateCursor(int X, int Y);
|
|
|
|
BOOL ShowCursor(BOOL bShow);
|
|
|
|
HRESULT SetHardwareCursor(
|
|
UINT XHotSpot,
|
|
UINT YHotSpot,
|
|
const std::vector<uint8_t>& bitmap,
|
|
bool cursorEmulation,
|
|
UINT width,
|
|
UINT height,
|
|
HWND window);
|
|
|
|
private:
|
|
|
|
BOOL m_visible = FALSE;
|
|
|
|
#ifdef _WIN32
|
|
HCURSOR m_hCursor = nullptr;
|
|
#endif
|
|
|
|
};
|
|
|
|
} |