Menus: Implement mouse/touch/pointer controls for all widgets.

git-svn-id: https://svn.eduke32.com/eduke32@4856 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
hendricks266 2014-12-27 18:37:27 +00:00
parent 6ac1850482
commit 7a1e94440a
3 changed files with 597 additions and 80 deletions

View file

@ -401,6 +401,7 @@ int32_t G_GetStringTile(int32_t font, char *t, int32_t f)
break;
default: // unknown character
*t = ' '; // whitespace-ize
case '\n':
return font;
break;
}

File diff suppressed because it is too large Load diff

View file

@ -411,10 +411,13 @@ extern int32_t m_mouselastactivity;
#if defined EDUKE32_TOUCH_DEVICES
# define MOUSEACTIVECONDITIONAL(condition) (condition)
# define MOUSEWATCHPOINTCONDITIONAL(condition) (condition)
#else
extern int32_t m_mousewake_watchpoint, m_menuchange_watchpoint;
# define MOUSEACTIVECONDITION (totalclock - m_mouselastactivity < M_MOUSETIMEOUT)
# define MOUSEACTIVECONDITIONAL(condition) (MOUSEACTIVECONDITION && (condition))
# define MOUSEINACTIVECONDITIONAL(condition) (!MOUSEACTIVECONDITION && (condition))
# define MOUSEWATCHPOINTCONDITIONAL(condition) ((condition) || m_mousewake_watchpoint || m_menuchange_watchpoint == 3)
#endif
#ifdef __cplusplus