Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode print key event info if RFB_DEBUG
details: https://anonhg.NetBSD.org/src/rev/57d360ebeb78
branches: trunk
changeset: 772337:57d360ebeb78
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Dec 30 12:13:31 2011 +0000
description:
print key event info if RFB_DEBUG
diffstat:
sys/arch/usermode/usermode/thunk.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r b784d99c509a -r 57d360ebeb78 sys/arch/usermode/usermode/thunk.c
--- a/sys/arch/usermode/usermode/thunk.c Fri Dec 30 12:07:33 2011 +0000
+++ b/sys/arch/usermode/usermode/thunk.c Fri Dec 30 12:13:31 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: thunk.c,v 1.62 2011/12/30 12:07:33 reinoud Exp $ */
+/* $NetBSD: thunk.c,v 1.63 2011/12/30 12:13:31 jmcneill Exp $ */
/*-
* Copyright (c) 2011 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#ifdef __NetBSD__
-__RCSID("$NetBSD: thunk.c,v 1.62 2011/12/30 12:07:33 reinoud Exp $");
+__RCSID("$NetBSD: thunk.c,v 1.63 2011/12/30 12:13:31 jmcneill Exp $");
#endif
#include <sys/types.h>
@@ -1163,6 +1163,11 @@
event->data.key_event.down_flag = key_event[0];
event->data.key_event.keysym =
ntohl(*(uint32_t *)&key_event[3]);
+#ifdef RFB_DEBUG
+ fprintf(stdout, "rfb: key %04x %s\n",
+ event->data.key_event.keysym,
+ event->data.key_event.down_flag ? "pressed" : "released");
+#endif
msg_len = 0;
break;
case THUNK_RFB_POINTER_EVENT:
Home |
Main Index |
Thread Index |
Old Index