This repository has been archived on 2025-03-20. You can view files and clone it, but cannot push or open issues or pull requests.
The-Powder-Toy/src/gui/keyconfig/KeyconfigTextbox.h
Tamás Bálint Misius 348ef06a1f
Move stuff around
2019-09-20 18:09:51 +02:00

32 lines
714 B
C++

#ifndef KEYCONFIGSTEXTBOX_H
#define KEYCONFIGSTEXTBOX_H
#include "gui/interface/Textbox.h"
#include "KeyconfigModel.h"
class KeyconfigController;
class KeyconfigTextbox: public ui::Textbox
{
public:
KeyconfigTextbox(ui::Point position, ui::Point size);
void OnKeyRelease(int key, int scan, bool repeat, bool shift, bool ctrl, bool alt);
void OnMouseClick(int x, int y, unsigned button);
void SetModel(BindingModel _model);
void SetTextFromModifierAndScan(int modifier, int scan);
void SetTextToPrevious();
void OnTextInput(String text) {}
void AttachController(KeyconfigController* _c);
protected:
String prevKey;
KeyconfigController* c;
BindingModel model;
};
#endif /* KEYCONFIGSTEXTBOX_H */