Add keyboard handling

This commit is contained in:
Sharat M R
2019-04-26 21:41:45 +05:30
parent 15ba6869e2
commit dea9bd191d
7 changed files with 2799 additions and 2 deletions

View File

@@ -2,6 +2,8 @@
#include <substrate.h>
#include <rfb/rfb.h>
#include "KeyboardHandle.xm"
static bool CCSisEnabled = true;
static rfbScreenInfoPtr screen;
static bool isVNCRunning;
@@ -52,6 +54,7 @@ static void VNCSetup() {
screen->serverFormat.redShift = bits_per_sample * 2;
screen->serverFormat.greenShift = bits_per_sample * 1;
screen->serverFormat.blueShift = bits_per_sample * 0;
screen->kbdAddEvent = &handleVNCKeyboard;
free(arg0);
}