Add support for ps2 intellimouse.
2000-12-13 <alexl@redhat.com> * gdk/linux-fb/gdkmouse-fb.c (mouse_devs): Add support for ps2 intellimouse. * gdkkeyboard-fb.c: Move shift-F1 repaint handling to xlate handler only. * docs/README.linux-fb: Add imps2 to docs. Document the new refresh keys.
This commit is contained in:
@ -371,11 +371,6 @@ gdk_fb_handle_key (guint hw_keycode,
|
||||
gdk_fb_redraw_all ();
|
||||
}
|
||||
|
||||
/* Ctrl-Alt Return can't be pressed in the XLATE driver,
|
||||
* use Shift F1 instead */
|
||||
if (key_up && (keyval == GDK_F1) && (modifier_state & GDK_SHIFT_MASK))
|
||||
gdk_fb_redraw_all ();
|
||||
|
||||
win = gdk_fb_window_find_focus ();
|
||||
event = gdk_event_make (win,
|
||||
key_up ? GDK_KEY_RELEASE : GDK_KEY_PRESS,
|
||||
@ -767,6 +762,12 @@ xlate_io (GIOChannel *gioc,
|
||||
{
|
||||
if (iscode (xlate_codes[j].str, &buf[i], left))
|
||||
{
|
||||
/* Ctrl-Alt Return can't be pressed in the XLATE driver,
|
||||
* use Shift F1 instead */
|
||||
if ((xlate_codes[j].code == GDK_F1) &&
|
||||
(xlate_codes[j].modifier & GDK_SHIFT_MASK))
|
||||
gdk_fb_redraw_all ();
|
||||
|
||||
gdk_fb_handle_key (xlate_codes[j].code,
|
||||
xlate_codes[j].code,
|
||||
xlate_codes[j].modifier,
|
||||
|
||||
@ -232,6 +232,13 @@ static GdkFBMouseDevice mouse_devs[] =
|
||||
gdk_fb_mouse_ps2_packet,
|
||||
{ 0xc0, 0x00 }
|
||||
},
|
||||
{ "imps2",
|
||||
4,
|
||||
gdk_fb_mouse_ps2_open,
|
||||
gdk_fb_mouse_ps2_close,
|
||||
gdk_fb_mouse_ps2_packet,
|
||||
{ 0xc0, 0x00 }
|
||||
},
|
||||
{ "ms",
|
||||
3,
|
||||
gdk_fb_mouse_ms_open,
|
||||
|
||||
Reference in New Issue
Block a user