aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/gwin/list.h4
-rw-r--r--src/gwin/list.c15
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,