Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 565 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 565 Bytes

Tobii-electron

Library for using tobii eye devices in electron

Usage

Main process

import { TobiiProcess } from "tobiiee";
import { TobiiElectronHelper } from "tobii-electron";

const tobii = new TobiiProcess()
const window = ...;

const helper = new TobiiElectronHelper(window, electron)

Window process

import { TobiiElectronHelper } from "tobii-electron";

TobiiElectronHelper.addGlobalPointEvent(ipcRendener, document)

 document.addEventListener('tobii.point', (e) => {
        console.log('tobii.point', e.detail);
 });