ArcdpsExtension
 
Loading...
Searching...
No Matches
KeyBindComponent.h
Go to the documentation of this file.
1#pragma once
2
3#include "ComponentBase.h"
4
5#include "../arcdps_structs_slim.h"
6#include "../KeyInput.h"
7
8#include <ArcdpsUnofficialExtras/KeyBindStructs.h>
9
10namespace ArcdpsExtension {
12 public:
13 explicit KeyBindComponent(MainWindow* pMainWindow);
14
15 protected:
20 virtual bool getKeyBindSwitch() { return true; }
27 virtual bool KeyBindPressed();
28
32 virtual KeyBinds::Key& getKeyBind() = 0;
33
40 virtual bool getCloseWithEsc() { return false; }
45 virtual bool getCloseWithEscActive() { return false; }
52 virtual bool EscPressed();
53
59 virtual HKL getCurrentHKL() { return GetKeyboardLayout(NULL); }
60
67
68 private:
69 uint64_t mKeyBindHandlerId = 0;
70 uint64_t mKeyBindEscHandlerId = 0;
71 };
72} // namespace ArcdpsExtension
gwlanguage
Definition arcdps_structs_slim.h:162
@ GWL_ENG
Definition arcdps_structs_slim.h:163
Definition ComponentBase.h:6
Definition KeyBindComponent.h:11
virtual bool EscPressed()
Definition KeyBindComponent.cpp:47
virtual bool getKeyBindSwitch()
Definition KeyBindComponent.h:20
virtual bool getCloseWithEscActive()
Definition KeyBindComponent.h:45
virtual HKL getCurrentHKL()
Definition KeyBindComponent.h:59
virtual bool getCloseWithEsc()
Definition KeyBindComponent.h:40
virtual bool KeyBindPressed()
Definition KeyBindComponent.cpp:42
virtual KeyBinds::Key & getKeyBind()=0
virtual gwlanguage getCurrentLanguage()
Definition KeyBindComponent.h:66
Definition MainWindow.h:22
Definition ArcdpsExtension.h:10