Skip to content

Commit

Permalink
Removed capslock reset, was triggering hotkey again and interfering w…
Browse files Browse the repository at this point in the history
…ith mouse position.
  • Loading branch information
NathanSweet committed Dec 19, 2016
1 parent 66d740e commit 8980b10
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/com/esotericsoftware/clippy/Tobii.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Tobii {
volatile double gazeX, gazeY, headX, headY;
double startGazeX, startGazeY, startHeadX, startHeadY;
volatile int lastMouseX, lastMouseY;
Object mouseLock = new Object();
final Object mouseLock = new Object();

public Tobii () {
if (!clippy.config.tobiiEnabled) return;
Expand Down Expand Up @@ -151,12 +151,6 @@ public void run () {
sleep(16);
}

// Turn off capslock light.
if (vk == KeyEvent.VK_CAPS_LOCK && clippy.keyboard.getCapslock()) {
clippy.keyboard.sendKeyDown((byte)KeyEvent.VK_CAPS_LOCK);
clippy.keyboard.sendKeyUp((byte)KeyEvent.VK_CAPS_LOCK);
}

hotkeyPressed = false;
}
});
Expand Down

0 comments on commit 8980b10

Please sign in to comment.