neutrino: sync keybind and usermenu code with neutrino-mp, code (C) martii

This commit is contained in:
[CST] Focus
2014-09-05 17:49:11 +04:00
parent f07e81c4b9
commit 420af7a4dc
45 changed files with 1767 additions and 1144 deletions

View File

@@ -49,13 +49,13 @@ class CKeyChooser : public CMenuWidget
{
private:
CFrameBuffer *frameBuffer;
int* key;
unsigned int * key;
std::string keyName;
CKeyChooserItem *keyChooser;
CKeyChooserItemNoKey *keyDeleter;
public:
CKeyChooser(int * const Key, const neutrino_locale_t title, const std::string & Icon = "");
CKeyChooser(unsigned int * const Key, const neutrino_locale_t title, const std::string & Icon = "");
~CKeyChooser();
void paint();
@@ -72,13 +72,13 @@ class CKeyChooserItem : public CMenuTarget
int height;
neutrino_locale_t name;
int * key;
unsigned int * key;
void paint();
public:
CKeyChooserItem(const neutrino_locale_t Name, int *Key);
CKeyChooserItem(const neutrino_locale_t Name, unsigned int *Key);
void hide();
int exec(CMenuTarget* parent, const std::string & actionKey);
@@ -87,11 +87,11 @@ class CKeyChooserItem : public CMenuTarget
class CKeyChooserItemNoKey : public CMenuTarget
{
int *key;
unsigned int * key;
public:
CKeyChooserItemNoKey(int *Key)
CKeyChooserItemNoKey(unsigned int *Key)
{
key=Key;
};