GestureTag-prototype
|-- TouchPad (Mac Trackpad App -- client)
|-- Eyetracking (Tobii eyetracker -- client)
|-- resources (img, css, and js)
|-- views (web client's view)
|server.js (server)
|tap/swipe.html (Mobile Trackpad -- client)
Basically, start the server first and then enable one of trackpad client platform (Mac App or Webpage)
npm install
npm run-script tap (config the server for tap tasks)
npm run-script swipe [tester] [device] (tester: motor (4-dir) /others (8-dir); device: mobile/desktop)
npm run-script dwell (config the server for dwell tasks)
npm run [method] [user_category] [device] [user_id] (ex: npm run swipe motor desktop tw_3)
localhost:3000
localhost:3000/gmail
localhost:3000/youtube
for the mock-up pages, the zoom
value of the browser may need to be modified.
ps. size of the mock-up pages are 16:10
.
Skip this part if testing for dwelling.
-
If you are using macOS, then you can open the Mac App.
- Please follow the instruction in section ## TouchPad ## to install all dependencies before running it.
- Open and Run TouchPad in Xcode
-
If you are using Windows, please find a mobile phone or tablet.
- Find the local IP address of your laptop
- Open the web browser on the mobile device.
- Type [ip adrress]:3000/swipe or [ip adrress]:3000/tap in the address bar. (you should see the page with purple background and 'a user connected' on the console of the server)
How to find your ip address on Windows
ifconfig | grep "inet " | grep -v 127.0.0.1
space
: start a trial.
p
: show the finger path on screen (only available in swipe method).
e
: use mousemove instead of eyemove.
Make sure you have Apple Developer Account (it is free) and have installed CocoaPods and Xcode.
If you don't have Homebrew:
sudo gem install cocoapods
If you have it, then try to use Homebrew to install:
brew install cocoapods
cd TouchPad
pod install
open `TrackPad.xcworkspace` with Xcode or double click the file in your Finder.