comparison native/PhantomOmni/HapticManager.cpp @ 5:d66dd5880081

Added support for Falcon Haptic device and Tablet/Mouse as haptic device
author Fiore Martin <fiore@eecs.qmul.ac.uk>
date Tue, 10 Jul 2012 22:39:37 +0100
parents 9e67171477bc
children ea7885bd9bff
comparison
equal deleted inserted replaced
4:2c67ac862920 5:d66dd5880081
445 attractToCoord[2] = 0; 445 attractToCoord[2] = 0;
446 } 446 }
447 } 447 }
448 } 448 }
449 449
450 /* draw lines. When a node is moved, edges are not drawn for the very first haptic frame after the shift. * 450 /* draw lines. When a node is moved, edges are not drawn for the very first haptic frame after the shift. *
451 * This is to address the behaviour of the device which, after a n ode is moved cannot see the styilus * 451 * This is to address the behaviour of the device which, after a n ode is moved cannot see the styilus *
452 * touching the edge. As a consequence of that in hlMotionCB() when moving away from a node along an edge * 452 * touching the edge. As a consequence of that in hlMotionCB() when moving away from a node along an edge *
453 * no edge name will be spoken and furthermore the pick up botton won't work as the device thinks it's not * 453 * no edge name will be spoken and furthermore the pick up botton won't work as the device thinks it's not *
454 * touching anything. Not drawing the edge on the first frame, seems to address this issue. */ 454 * touching anything. Not drawing the edge on the first frame, seems to address this issue. */
455 if(!movedNode) { 455 if(!movedNode) {