diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-08-12 16:40:09 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-08-12 16:50:41 -0700 |
commit | b90bb97a5b8686ba050835724c6b299a0cfb0305 (patch) | |
tree | 81d76426bb76ba03565a4b45ed537ed84834dd85 /print11.c | |
parent | f65c809fb7c269c2bf450274f424feab85ea95cb (diff) | |
download | xscope-b90bb97a5b8686ba050835724c6b299a0cfb0305.tar.gz |
Add GenericEvent support
Allows extensions to register their own decoders for GenericEvents,
though none do, since XInput isn't decoded yet
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'print11.c')
-rw-r--r-- | print11.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -954,6 +954,23 @@ MappingNotifyEvent ( } void +UnknownGenericEvent ( + const unsigned char *buf) +{ + long n; + + PrintField(buf, 0, 1, EVENT, EVENTHEADER) /* GenericEvent */; + if (Verbose < 1) + return; + PrintField(buf, 1, 1, EXTENSION, "extension"); + printfield (buf, 2, 2, CARD16, "sequence number"); + printfield (buf, 4, 4, DVALUE4(n), "event length"); + PrintField(buf, 2, 8, CARD16, "event type"); + n = ILong (&buf[4]) + 5; + (void) PrintList (&buf[12], n, CARD32, "data"); +} + +void UnknownEvent ( const unsigned char *buf) { |