Input: Add flags to RawDeviceEvent
Add a flags member which will be copied wholesale into the resultant xXIRawEvent. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
5d62c32981
commit
60a766a96f
|
@ -667,6 +667,7 @@ eventToRawEvent(RawDeviceEvent *ev, xEvent **xi)
|
|||
raw->detail = ev->detail.button;
|
||||
raw->deviceid = ev->deviceid;
|
||||
raw->valuators_len = vallen;
|
||||
raw->flags = ev->flags;
|
||||
|
||||
ptr = (char*)&raw[1];
|
||||
axisval = (FP3232*)(ptr + raw->valuators_len * 4);
|
||||
|
|
|
@ -204,6 +204,7 @@ struct _RawDeviceEvent
|
|||
int32_t data_raw[MAX_VALUATORS]; /**< Valuator data as posted */
|
||||
int32_t data_raw_frac[MAX_VALUATORS];/**< Fractional part for data_raw */
|
||||
} valuators;
|
||||
uint32_t flags; /**< Flags to be copied into the generated event */
|
||||
};
|
||||
|
||||
#ifdef XQUARTZ
|
||||
|
|
|
@ -51,6 +51,7 @@ static void test_values_XIRawEvent(RawDeviceEvent *in, xXIRawEvent *out,
|
|||
swapl(&out->time);
|
||||
swapl(&out->detail);
|
||||
swaps(&out->valuators_len);
|
||||
swapl(&out->flags);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user