ia64/xen-unstable

changeset 17149:ecf7ded43d5c

Rename struct xenkbd_position member abs_z to rel_z. Z-axis motion is
relative, not absolute.
From: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Feb 28 13:09:28 2008 +0000 (2008-02-28)
parents 896b543581fe
children 6b875abd0a9e
files tools/ioemu/hw/xenfb.c xen/include/public/io/kbdif.h
line diff
     1.1 --- a/tools/ioemu/hw/xenfb.c	Thu Feb 28 10:48:42 2008 +0000
     1.2 +++ b/tools/ioemu/hw/xenfb.c	Thu Feb 28 13:09:28 2008 +0000
     1.3 @@ -598,7 +598,8 @@ static int xenfb_send_key(struct xenfb *
     1.4  }
     1.5  
     1.6  /* Send a relative mouse movement event */
     1.7 -static int xenfb_send_motion(struct xenfb *xenfb, int rel_x, int rel_y, int rel_z)
     1.8 +static int xenfb_send_motion(struct xenfb *xenfb,
     1.9 +			     int rel_x, int rel_y, int rel_z)
    1.10  {
    1.11  	union xenkbd_in_event event;
    1.12  
    1.13 @@ -612,7 +613,8 @@ static int xenfb_send_motion(struct xenf
    1.14  }
    1.15  
    1.16  /* Send an absolute mouse movement event */
    1.17 -static int xenfb_send_position(struct xenfb *xenfb, int abs_x, int abs_y, int abs_z)
    1.18 +static int xenfb_send_position(struct xenfb *xenfb,
    1.19 +			       int abs_x, int abs_y, int rel_z)
    1.20  {
    1.21  	union xenkbd_in_event event;
    1.22  
    1.23 @@ -620,7 +622,7 @@ static int xenfb_send_position(struct xe
    1.24  	event.type = XENKBD_TYPE_POS;
    1.25  	event.pos.abs_x = abs_x;
    1.26  	event.pos.abs_y = abs_y;
    1.27 -	event.pos.abs_z = abs_z;
    1.28 +	event.pos.rel_z = rel_z;
    1.29  
    1.30  	return xenfb_kbd_event(xenfb, &event);
    1.31  }
     2.1 --- a/xen/include/public/io/kbdif.h	Thu Feb 28 10:48:42 2008 +0000
     2.2 +++ b/xen/include/public/io/kbdif.h	Thu Feb 28 13:09:28 2008 +0000
     2.3 @@ -65,7 +65,7 @@ struct xenkbd_position
     2.4      uint8_t type;        /* XENKBD_TYPE_POS */
     2.5      int32_t abs_x;       /* absolute X position (in FB pixels) */
     2.6      int32_t abs_y;       /* absolute Y position (in FB pixels) */
     2.7 -    int32_t abs_z;       /* absolute Z position (wheel) */
     2.8 +    int32_t rel_z;       /* relative Z motion (wheel) */
     2.9  };
    2.10  
    2.11  #define XENKBD_IN_EVENT_SIZE 40