]> Joshua Wise's Git repositories - netwatch.git/blobdiff - net/rfb.c
call kbd_inject_keysym
[netwatch.git] / 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 <output.h>
 #include <fb.h>
 
+#include "../aseg-paging/keyboard.h"
+
 #include "lwip/tcp.h"
 
 #include "rfb.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");
 
                                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;
 
                        state->readpos += sizeof(struct key_event_pkt);
                        return OK;
This page took 0.026041 seconds and 4 git commands to generate.