cleanup
This commit is contained in:
parent
c66e5cd9cb
commit
423c28b40e
@ -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.
|
||||
*
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user