1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-24 18:48:01 +02:00

New code for awaitKeyReleases

This commit is contained in:
Brian Fiete 2022-01-05 07:27:38 -05:00
parent ec83ae50fa
commit ca2301bfd3
2 changed files with 48 additions and 12 deletions

View file

@ -51,9 +51,10 @@ public:
bool mHasFocus;
bool mSoftHasFocus; // Mostly tracks mHasFocus except for when we get an explicit 'LostFocus' callback
bool mAwaitKeyReleases;
DWORD mAwaitKeyEventTick;
int mAwaitKeyReleasesCheckIdx;
DWORD mAwaitKeyReleasesEventTick;
DWORD mFocusLostTick;
bool mNeedsStateReset;
bool mNeedsStateReset;
bool mKeyLayoutHasAltGr;
public:
@ -61,6 +62,7 @@ public:
static LRESULT CALLBACK WindowProcStub(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam);
void RehupMouseOver(bool isMouseOver);
bool CheckKeyReleases(bool isKeyDown);
void GotFocus();
public:
WinBFWindow(BFWindow* parent, const StringImpl& title, int x, int y, int width, int height, int windowFlags);