]> Joshua Wise's Git repositories - netwatch.git/commitdiff
call kbd_inject_keysym
authorJacob Potter <jdpotter@andrew.cmu.edu>
Fri, 12 Dec 2008 22:43:27 +0000 (17:43 -0500)
committerJacob Potter <jdpotter@andrew.cmu.edu>
Fri, 12 Dec 2008 22:43:27 +0000 (17:43 -0500)
net/rfb.c

index 1f620f0dcec9d8354f7a049f31a7044eac857472..3e163b012d16616c95eb6bfe0ef95222c8704958 100644 (file)
--- a/net/rfb.c
+++ b/net/rfb.c
@@ -3,6 +3,8 @@
 #include <output.h>
 #include <fb.h>
 
+#include "../aseg-paging/keyboard.h"
+
 #include "lwip/tcp.h"
 
 #include "rfb.h"
@@ -360,7 +362,8 @@ static enum fsm_result recv_fsm(struct tcp_pcb *pcb, struct rfb_state *state) {
                                return NEEDMORE;
                        outputf("RFB: Key");
 
-                       /* XXX stub */
+                       struct key_event_pkt * p = (struct key_event_pkt *)state->data;
+                       kbd_inject_keysym(htonl(p->keysym), p->downflag);
 
                        state->readpos += sizeof(struct key_event_pkt);
                        return OK;
This page took 0.022464 seconds and 4 git commands to generate.