mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-14 10:05:43 +01:00
41 lines
725 B
C++
41 lines
725 B
C++
#pragma once
|
|
|
|
#include "XImage.h"
|
|
#include "../refit/IO.h"
|
|
|
|
class REFIT_MENU_SCREEN;
|
|
class XImage;
|
|
|
|
class XPointer
|
|
{
|
|
public:
|
|
XPointer();
|
|
~XPointer();
|
|
|
|
protected:
|
|
EFI_SIMPLE_POINTER_PROTOCOL *SimplePointerProtocol;
|
|
XImage PointerImage;
|
|
XImage newImage;
|
|
XImage oldImage;
|
|
|
|
EG_RECT newPlace;
|
|
EG_RECT oldPlace;
|
|
|
|
UINT64 LastClickTime; //not EFI_TIME
|
|
EFI_SIMPLE_POINTER_STATE State;
|
|
MOUSE_EVENT MouseEvent;
|
|
|
|
public:
|
|
void Hide();
|
|
EFI_STATUS MouseBirth();
|
|
VOID KillMouse();
|
|
UINT64 TimeDiff(UINT64 t0, UINT64 t1);
|
|
VOID UpdatePointer();
|
|
bool MouseInRect(EG_RECT *Place);
|
|
EFI_STATUS CheckMouseEvent(REFIT_MENU_SCREEN *Screen);
|
|
|
|
protected:
|
|
VOID DrawPointer();
|
|
|
|
};
|