From: Jacob Potter Date: Fri, 12 Dec 2008 22:43:27 +0000 (-0500) Subject: call kbd_inject_keysym X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/ec949d20affd6d93ba2e72da9fb109c7771381ce?ds=inline;hp=-c call kbd_inject_keysym --- ec949d20affd6d93ba2e72da9fb109c7771381ce diff --git a/net/rfb.c b/net/rfb.c index 1f620f0..3e163b0 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -3,6 +3,8 @@ #include #include +#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;