* Little progress on the interface for key bindings.
* This seems to still be stable so I commit while I'm at it.
This commit is contained in:
jean.chalard
2010-02-15 18:14:24 +00:00
parent e7d72b7722
commit 2faabf98b5
2 changed files with 8 additions and 4 deletions

View File

@@ -487,6 +487,10 @@ struct WLFiltersSort{
class WGuiKeyBinder : public WGuiList { class WGuiKeyBinder : public WGuiList {
public: public:
WGuiKeyBinder(string name); WGuiKeyBinder(string name);
virtual bool isModal();
virtual bool CheckUserInput(JButton);
protected:
bool modal;
}; };
#endif #endif

View File

@@ -1732,14 +1732,14 @@ string WGuiFilterItem::getCode(){
return mCode; return mCode;
} }
WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name) WGuiKeyBinder::WGuiKeyBinder(string name) : WGuiList(name), modal(false)
{ {
JGE* j = JGE::GetInstance(); JGE* j = JGE::GetInstance();
JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end(); JGE::keybindings_it start = j->KeyBindings_begin(), end = j->KeyBindings_end();
u32 y = 40; u32 y = 40;
for (JGE::keybindings_it it = start; it != end; ++it) for (JGE::keybindings_it it = start; it != end; ++it)
{ Add(NEW OptionKey(it->first, it->second));
Add(NEW OptionKey(it->first, it->second));
}
} }
bool WGuiKeyBinder::isModal() { return modal; }
bool WGuiKeyBinder::CheckUserInput(JButton key) { return false; }