cleanup
This commit is contained in:
parent
c66e5cd9cb
commit
423c28b40e
2 changed files with 3 additions and 16 deletions
|
@ -65,8 +65,8 @@ extern "C" {
|
||||||
* @note The list contains no elements after creation.
|
* @note The list contains no elements after creation.
|
||||||
* @note A slider supports mouse, toggle and dial input.
|
* @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
|
* @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:
|
* 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, role 2 = toggle for select.
|
* 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
|
* @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.
|
* will forget the previous dial. Only dial role 0 is supported.
|
||||||
*
|
*
|
||||||
|
|
|
@ -71,14 +71,6 @@ static void _selectDown(GWidgetObject *gw) {
|
||||||
#undef gcw
|
#undef gcw
|
||||||
}
|
}
|
||||||
|
|
||||||
static void _selectEnter(GWidgetObject *gw) {
|
|
||||||
#define gcw ((GListObject *)gw)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#undef gcw
|
|
||||||
}
|
|
||||||
|
|
||||||
static void sendListEvent(GWidgetObject *gw, int item) {
|
static void sendListEvent(GWidgetObject *gw, int item) {
|
||||||
GSourceListener* psl;
|
GSourceListener* psl;
|
||||||
GEvent* pe;
|
GEvent* pe;
|
||||||
|
@ -183,11 +175,6 @@ static void gwinListDefaultDraw(GWidgetObject* gw, void* param) {
|
||||||
case 1:
|
case 1:
|
||||||
_selectDown(gw);
|
_selectDown(gw);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
// select enter
|
|
||||||
case 2:
|
|
||||||
_selectEnter(gw);
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#undef gcw
|
#undef gcw
|
||||||
|
@ -221,7 +208,7 @@ static const gwidgetVMT listVMT = {
|
||||||
#endif
|
#endif
|
||||||
#if GINPUT_NEED_TOGGLE
|
#if GINPUT_NEED_TOGGLE
|
||||||
{
|
{
|
||||||
2, // three toggle roles
|
2, // two toggle roles
|
||||||
ToggleAssin, // Assign toggles
|
ToggleAssin, // Assign toggles
|
||||||
ToggleGet, // get toggles
|
ToggleGet, // get toggles
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Add table
Reference in a new issue