small fix : IKeysMap data() function return a ref to the keys map

This commit is contained in:
Lendemor 2018-01-08 12:07:09 +01:00
parent 527f63522f
commit ace1eacb24

View File

@ -42,7 +42,7 @@ public:
enum {PRESSED, RELEASED, HOLD}; enum {PRESSED, RELEASED, HOLD};
IKeysMap(); IKeysMap();
std::vector<Binding> getBindings(Action action) const; std::vector<Binding> getBindings(Action action) const;
std::vector<Binding> data(){return keys;} std::vector<Binding>& data(){return keys;}
protected: protected:
std::vector<Binding> keys; std::vector<Binding> keys;
}; };