void readNeuro() { tgPacketCount = ThinkGear.TG_ReadPackets(tgHandleId, -1); attention = ThinkGear.TG_GetValue(tgHandleId, ThinkGear.DATA_ATTENTION); blink = ThinkGear.TG_GetValue(tgHandleId, ThinkGear.DATA_BLINK_STRENGTH); }
private float?GetValue(int type) { // if the value has been updated, get the value and return it if (ThinkGear.TG_GetValueStatus(_connectionId, type) != 0) { return(ThinkGear.TG_GetValue(_connectionId, type)); } return(null); }