ugfx_release_2.6
Joel Bodenmann 2013-07-28 07:04:04 +02:00
parent c66e5cd9cb
commit 423c28b40e
2 changed files with 3 additions and 16 deletions

View File

@ -65,8 +65,8 @@ extern "C" {
* @note The list contains no elements after creation.
* @note A slider supports mouse, toggle and dial input.
* @note When assigning a toggle, only one toggle is supported per role. If you try to assign more than
* one toggle to a role, it will forget the previous toggle. Three roles are supported:
* Role 0 = toggle for down, role 1 = toggle for up, role 2 = toggle for select.
* one toggle to a role, it will forget the previous toggle. Two roles are supported:
* Role 0 = toggle for down, role 1 = toggle for up
* @note When assigning a dial, only one dial is supported. If you try to assign more than one dial, it
* will forget the previous dial. Only dial role 0 is supported.
*

View File

@ -71,14 +71,6 @@ static void _selectDown(GWidgetObject *gw) {
#undef gcw
}
static void _selectEnter(GWidgetObject *gw) {
#define gcw ((GListObject *)gw)
#undef gcw
}
static void sendListEvent(GWidgetObject *gw, int item) {
GSourceListener* psl;
GEvent* pe;
@ -183,11 +175,6 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
case 1:
_selectDown(gw);
break;
// select enter
case 2:
_selectEnter(gw);
break;
}
#undef gcw
@ -221,7 +208,7 @@ static const gwidgetVMT listVMT = {
#endif
#if GINPUT_NEED_TOGGLE
{
2, // three toggle roles
2, // two toggle roles
ToggleAssin, // Assign toggles
ToggleGet, // get toggles
0,