Commit efe3ff1b authored by Manish Singh's avatar Manish Singh Committed by Manish Singh

put BTN_{WHEEL,GEAR_DOWN,GEAR_UP} usage in #ifdefs, since pre-2.6 kernels

2004-06-16  Manish Singh  <yosh@gimp.org>

        * modules/controller_linux_input.c: put BTN_{WHEEL,GEAR_DOWN,GEAR_UP}
        usage in #ifdefs, since pre-2.6 kernels do not have them.

        * modules/controller_linux_input.c (linux_input_read_event): n_bytes
        should be a gsize.
parent ed891b72
2004-06-16 Manish Singh <yosh@gimp.org>
* modules/controller_linux_input.c: put BTN_{WHEEL,GEAR_DOWN,GEAR_UP}
usage in #ifdefs, since pre-2.6 kernels do not have them.
* modules/controller_linux_input.c (linux_input_read_event): n_bytes
should be a gsize.
2004-06-16 Michael Natterer <mitch@gimp.org>
* app/actions/context-actions.c
......
......@@ -67,9 +67,15 @@ static const LinuxInputEvent key_events[] =
{ BTN_EXTRA, "button-extra", N_("Button Extra") },
{ BTN_FORWARD, "button-forward", N_("Button Forward") },
{ BTN_BACK, "button-back", N_("Button Forward") },
#ifdef BTN_WHEEL
{ BTN_WHEEL, "button-wheel", N_("Button Wheel") },
#endif
#ifdef BTN_GEAR_DOWN
{ BTN_GEAR_DOWN, "button-gear-down", N_("Button Gear Down") },
#endif
#ifdef BTN_GEAR_UP
{ BTN_GEAR_UP, "button-gear-up", N_("Button Gear Up") }
#endif
};
static const LinuxInputEvent rel_events[] =
......@@ -378,7 +384,7 @@ linux_input_read_event (GIOChannel *io,
gpointer data)
{
struct input_event ev;
gint n_bytes;
gsize n_bytes;
gint i;
if (g_io_channel_read_chars (io,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment