mirror of
https://github.com/edubart/otclient.git
synced 2025-10-19 05:53:26 +02:00
walk and key event system rework with some regressions
This commit is contained in:
@@ -76,10 +76,8 @@ void ConfigManager::setList(const std::string& key, const std::vector<std::strin
|
||||
return;
|
||||
|
||||
OTMLNodePtr child = OTMLNode::create(key, true);
|
||||
for(const std::string& value : list) {
|
||||
for(const std::string& value : list)
|
||||
child->writeIn(value);
|
||||
dump << "insert" << value;
|
||||
}
|
||||
m_confsDoc->addChild(child);
|
||||
}
|
||||
|
||||
|
@@ -26,14 +26,30 @@
|
||||
#include "declarations.h"
|
||||
|
||||
struct InputEvent {
|
||||
InputEvent() {
|
||||
reset();
|
||||
keyboardModifiers = 0;
|
||||
}
|
||||
|
||||
void reset(Fw::InputEventType eventType = Fw::NoInputEvent) {
|
||||
type = eventType;
|
||||
wheelDirection = Fw::MouseNoWheel;
|
||||
mouseButton = Fw::MouseNoButton;
|
||||
keyCode = Fw::KeyUnknown;
|
||||
keyText = "";
|
||||
mouseMoved = Point();
|
||||
wouldFilter = false;
|
||||
};
|
||||
|
||||
Fw::InputEventType type;
|
||||
Fw::MouseWheelDirection wheelDirection;
|
||||
Fw::MouseButton mouseButton;
|
||||
int keyboardModifiers;
|
||||
std::string keyText;
|
||||
Fw::Key keyCode;
|
||||
std::string keyText;
|
||||
int keyboardModifiers;
|
||||
Point mousePos;
|
||||
Point mouseMoved;
|
||||
bool wouldFilter;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user