enable dial-events for e.g. the powermate. Fixed typo.

2004-06-16  Simon Budig  <simon@gimp.org>

	* modules/controller_linux_input.c: enable dial-events for
	e.g. the powermate. Fixed typo.
This commit is contained in:
Simon Budig
2004-06-16 12:07:34 +00:00
committed by Simon Budig
parent dce97c4e33
commit 7d46ad95be
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-06-16 Simon Budig <simon@gimp.org>
* modules/controller_linux_input.c: enable dial-events for
e.g. the powermate. Fixed typo.
2004-06-16 Sven Neumann <sven@gimp.org>
* menus/image-menu.xml.in: added missing menu entries (bug #144449).

View File

@ -133,7 +133,9 @@ static const LinuxInputEvent input_events[] =
{ EV_KEY, BTN_RIGHT, "button-right", N_("Button Right") },
{ EV_KEY, BTN_MIDDLE, "button-middle", N_("Button Middle") },
{ EV_REL, REL_WHEEL, "wheel-turn-left", N_("Wheel Turn Left") },
{ EV_REL, REL_WHEEL, "wheel-rurn-right", N_("Wheel Turn Right") },
{ EV_REL, REL_WHEEL, "wheel-turn-right", N_("Wheel Turn Right") },
{ EV_REL, REL_DIAL, "dial-turn-left", N_("Dial Turn Left") },
{ EV_REL, REL_DIAL, "dial-turn-right", N_("Dial Turn Right") },
};
static GType controller_type = 0;
@ -351,7 +353,7 @@ linux_input_read_event (GIOChannel *io,
cevent.any.event_id = i;
/* EEEEEEK */
if (ev.code == REL_WHEEL)
if (ev.code == REL_WHEEL || ev.code == REL_DIAL)
{
gint count;