From 4b2ce2fd665595e610523c62c928835c046ecabe Mon Sep 17 00:00:00 2001 From: Jeremy Klein Date: Fri, 25 Sep 2015 13:45:38 -0700 Subject: Forward mouseevents to the terminal when appropriate. Only handle mouse events locally if shift is held. Partially fixes #225. Still need to figure out mouse wheel forwarding and proper copy support when the terminal is handling selection itself (ie in an editor). --- app/src/main/java/de/mud/terminal/VDUInput.java | 3 +-- app/src/main/java/de/mud/terminal/vt320.java | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'app/src/main/java/de/mud') diff --git a/app/src/main/java/de/mud/terminal/VDUInput.java b/app/src/main/java/de/mud/terminal/VDUInput.java index 43c88de..abaa70f 100644 --- a/app/src/main/java/de/mud/terminal/VDUInput.java +++ b/app/src/main/java/de/mud/terminal/VDUInput.java @@ -61,9 +61,8 @@ public interface VDUInput { * of the release. * @param x * @param y - * @param modifiers */ - void mouseReleased(int x, int y, int modifiers); + void mouseReleased(int x, int y); /** * Override the standard key codes used by the terminal emulation. diff --git a/app/src/main/java/de/mud/terminal/vt320.java b/app/src/main/java/de/mud/terminal/vt320.java index 73369af..c094a9e 100644 --- a/app/src/main/java/de/mud/terminal/vt320.java +++ b/app/src/main/java/de/mud/terminal/vt320.java @@ -376,9 +376,8 @@ public void setScreenSize(int c, int r, boolean broadcast) { * of the release. * @param x * @param y - * @param modifiers */ - public void mouseReleased(int x, int y, int modifiers) { + public void mouseReleased(int x, int y) { if (mouserpt == 0) return; -- cgit v1.2.3