Exemplo n.º 1
0
        public void RequestTracker(GazeManager.ClientMode mode, GazeManager.ApiVersion version)
        {
            TrackerSetRequest gr = new TrackerSetRequest();

            gr.Values.Version = (int)version.GetTypeCode();
            gr.Values.Push = mode == GazeManager.ClientMode.Push;

            Request(JsonConvert.SerializeObject(gr));
        }
Exemplo n.º 2
0
        public void RequestScreenSwitch(int screenIndex, int screenResW, int screenResH, float screenPsyW, float screenPsyH)
        {
            TrackerSetRequest gr = new TrackerSetRequest();

            gr.Values.ScreenIndex = screenIndex;
            gr.Values.ScreenResolutionWidth = screenResW;
            gr.Values.ScreenResolutionHeight = screenResH;
            gr.Values.ScreenPhysicalWidth = screenResW;
            gr.Values.ScreenPhysicalHeight = screenResH;

            Request(JsonConvert.SerializeObject(gr));
        }