ArcdpsExtension
 
Loading...
Searching...
No Matches
KeyBindComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "ComponentBase.h"
4#include "../arcdps_structs_slim.h"
5
6#include <ArcdpsUnofficialExtras/KeyBindStructs.h>
7#include <cstddef>
8#include <cstdint>
9#include <windows.h>
10
11namespace ArcdpsExtension {
13 public:
14 explicit KeyBindComponent(MainWindow* pMainWindow);
15
16 protected:
21 virtual bool getKeyBindSwitch() { return true; }
28 virtual bool KeyBindPressed();
29
33 virtual KeyBinds::Key& getKeyBind() = 0;
34
41 virtual bool getCloseWithEsc() { return false; }
46 virtual bool getCloseWithEscActive() { return false; }
53 virtual bool EscPressed();
54
60 virtual HKL getCurrentHKL() { return GetKeyboardLayout(NULL); }
61
68
69 private:
70 uint64_t mKeyBindHandlerId = 0;
71 uint64_t mKeyBindEscHandlerId = 0;
72 };
73} // namespace ArcdpsExtension
gwlanguage
Definition arcdps_structs_slim.h:162
@ GWL_ENG
Definition arcdps_structs_slim.h:163
Definition ComponentBase.h:6
Definition KeyBindComponent.h:12
virtual bool EscPressed()
Definition KeyBindComponent.cpp:51
virtual bool getKeyBindSwitch()
Definition KeyBindComponent.h:21
virtual bool getCloseWithEscActive()
Definition KeyBindComponent.h:46
virtual HKL getCurrentHKL()
Definition KeyBindComponent.h:60
virtual bool getCloseWithEsc()
Definition KeyBindComponent.h:41
virtual bool KeyBindPressed()
Definition KeyBindComponent.cpp:46
virtual KeyBinds::Key & getKeyBind()=0
virtual gwlanguage getCurrentLanguage()
Definition KeyBindComponent.h:67
Definition MainWindow.h:23
Definition ArcdpsExtension.h:10