Skip to content

Commit b2ff340

Browse files
committed
fix api bug
1 parent f30faad commit b2ff340

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ intellij {
2727
// type.set("IC")
2828
// plugins.set(listOf("com.intellij.java"))
2929

30-
type.set("PC")
31-
plugins.set(listOf("PythonCore"))
30+
// type.set("PC")
31+
// plugins.set(listOf("PythonCore"))
3232

3333
// type.set("CL")
3434

src/main/java/trackers/EyeTracker.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ public void selectionChanged(@NotNull FileEditorManagerEvent event) {
9393

9494
public EyeTracker(String pythonInterpreter, double sampleFrequency, boolean isUsingMouse) throws ParserConfigurationException {
9595

96+
// if(isUsingMouse) {
97+
// deviceIndex = 0;
98+
// } else {
99+
// deviceIndex = 1;
100+
// }
101+
96102
eyeTracking.appendChild(root);
97103
root.appendChild(setting);
98104
root.appendChild(gazes);
@@ -106,12 +112,6 @@ public EyeTracker(String pythonInterpreter, double sampleFrequency, boolean isUs
106112
setPythonScriptMouse();
107113
setPythonScriptTobii();
108114

109-
if(isUsingMouse) {
110-
deviceIndex = 0;
111-
} else {
112-
deviceIndex = 1;
113-
}
114-
115115
ApplicationManager.getApplication().getMessageBus().connect(this).subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerListener() {
116116
@Override
117117
public void fileOpened(@NotNull FileEditorManager source, @NotNull VirtualFile file) {
@@ -237,11 +237,10 @@ public void processRawData(String message) {
237237
Element aSTStructure = getASTStructureElement(psiElement);
238238
gaze.appendChild(aSTStructure);
239239
lastElement = psiElement;
240-
// System.out.println(gaze.getAttribute("timestamp") + " " + System.currentTimeMillis());
240+
System.out.println(gaze.getAttribute("timestamp") + " " + System.currentTimeMillis());
241+
handleElement(gaze);
241242
}
242243
}));
243-
244-
handleElement(gaze);
245244
}
246245

247246
public void track() {

0 commit comments

Comments
 (0)