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.
This commit is contained in:

committed by
Manish Singh

parent
ed891b72db
commit
efe3ff1b91
@ -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,
|
||||
|
Reference in New Issue
Block a user