diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-21 10:43:04 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2004-04-21 10:43:04 +0000 |
commit | 6128a4aa5e791ed4e0a655bfd346a52d92da7883 (patch) | |
tree | af53ca3f67ce405b6fbc6c98399c8e0c87e01a9e /c/src/lib/libbsp/i386/pc386/console/mouse_parser.c | |
parent | 2004-04-20 Ralf Corsepius <ralf_corsepius@rtems.org> (diff) | |
download | rtems-6128a4aa5e791ed4e0a655bfd346a52d92da7883.tar.bz2 |
Remove stray white spaces.
Diffstat (limited to 'c/src/lib/libbsp/i386/pc386/console/mouse_parser.c')
-rw-r--r-- | c/src/lib/libbsp/i386/pc386/console/mouse_parser.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c index bb49a3906a..308ace335f 100644 --- a/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c +++ b/c/src/lib/libbsp/i386/pc386/console/mouse_parser.c @@ -5,7 +5,7 @@ * provided that this copyright notice remains intact. * * UNIX Serial Port Mouse Driver - * + * * This driver opens a serial port directly, and interprets serial data. * Microsoft, PC, Logitech and PS/2 mice are supported. * The PS/2 mouse is only supported if the OS runs the mouse @@ -148,7 +148,7 @@ int MOU_Data( int ch, COORD *dx, COORD *dy, COORD *dz, BUTTON *bptr) * When a complete state has been read, return the results, * leaving further bytes in the buffer for later calls. */ - if( (*parse)( ch ) ) + if( (*parse)( ch ) ) { *dx = xd; *dy = yd; @@ -268,7 +268,7 @@ static int ParsePS2(int byte) switch (state) { case IDLE: if (byte & PS2_CTRL_BYTE) { - buttons = byte & + buttons = byte & (PS2_LEFT_BUTTON|PS2_RIGHT_BUTTON); state = XSET; } @@ -372,7 +372,7 @@ static void kbd_parser( void *ptr, unsigned short keycode, unsigned long mods ) m.m.kbd.modifiers = kbd->ledflagstate; m.m.kbd.mode = kbd->kbdmode; /* printk( "kbd: msg: keycode=%X, mod=%X\n", keycode, mods ); */ - rtems_message_queue_send( queue_id, ( void * )&m, + rtems_message_queue_send( queue_id, ( void * )&m, sizeof( struct MW_UID_MESSAGE ) ); } |