diff options
author | Joel Bodenmann <joel@unormal.org> | 2013-07-28 07:04:04 +0200 |
---|---|---|
committer | Joel Bodenmann <joel@unormal.org> | 2013-07-28 07:04:04 +0200 |
commit | 423c28b40e0849838615e575630d8e251f04739b (patch) | |
tree | bb743db5f786472545d85aef89acf34bd979b440 | |
parent | c66e5cd9cbcdea293d661c6886587b3c9ca35078 (diff) | |
download | uGFX-423c28b40e0849838615e575630d8e251f04739b.tar.gz uGFX-423c28b40e0849838615e575630d8e251f04739b.tar.bz2 uGFX-423c28b40e0849838615e575630d8e251f04739b.zip |
cleanup
-rw-r--r-- | include/gwin/list.h | 4 | ||||
-rw-r--r-- | src/gwin/list.c | 15 |
2 files changed, 3 insertions, 16 deletions
diff --git a/include/gwin/list.h b/include/gwin/list.h index 7355623f..ba83f24b 100644 --- a/include/gwin/list.h +++ b/include/gwin/list.h @@ -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. * diff --git a/src/gwin/list.c b/src/gwin/list.c index 8f5530a2..f495ada4 100644 --- a/src/gwin/list.c +++ b/src/gwin/list.c @@ -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, |