Smartphone UI (finger-scrolling of level menu, bigger buttons, ...), several bugs fixed. Ignoring volume keys.Updated enigma-data32.zip included (modified some lua script).

This commit is contained in:
Michi
2011-07-12 16:44:20 +02:00
parent bbf90a959b
commit b62205ad87
17 changed files with 177 additions and 198 deletions

View File

@@ -71,6 +71,7 @@ namespace enigma { namespace gui {
bool handle_keydown (const SDL_Event *e);
bool handle_mousedown (const SDL_Event *e);
bool handle_mouseup (const SDL_Event *e);
//---------- Variables ----------//
bool displayScoreIcons;
@@ -80,6 +81,10 @@ namespace enigma { namespace gui {
lev::Index *curIndex;
ActionListener *listener;
int m_mousedown_x;
int m_mousedown_y;
bool m_mouse_drag;
int ifirst; // Index of "upper left" level
int iselected; // Index of selected level
int width; // number of buttons in a row