forked from enlightenment/enlightenment
E: Fix mouse wheel binding bugger that was setting the wrong labels
for mouse wheel events. (Z is actually -1 for wheel up and 1 for wheel down). SVN revision: 71845
This commit is contained in:
parent
69dc5013aa
commit
9b75256e09
|
@ -1192,14 +1192,13 @@ _helper_wheel_name_get(E_Config_Binding_Wheel *bw)
|
||||||
switch (bw->direction)
|
switch (bw->direction)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
if (bw->z >= 0)
|
if (bw->z < 0)
|
||||||
name = strdup("Mouse Wheel Up");
|
name = strdup("Mouse Wheel Up");
|
||||||
else
|
else
|
||||||
name = strdup("Mouse Wheel Down");
|
name = strdup("Mouse Wheel Down");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if (bw->z >= 0)
|
if (bw->z < 0)
|
||||||
snprintf(buf, sizeof(buf), "Extra Wheel (%d) Up", bw->direction);
|
snprintf(buf, sizeof(buf), "Extra Wheel (%d) Up", bw->direction);
|
||||||
else
|
else
|
||||||
snprintf(buf, sizeof(buf), "Extra Wheel (%d) Down", bw->direction);
|
snprintf(buf, sizeof(buf), "Extra Wheel (%d) Down", bw->direction);
|
||||||
|
|
Loading…
Reference in New Issue