diff src/com/five_ten_sg/connectbot/service/TerminalMonitor.java @ 148:69333ca1563c

add ptt button p2 preference
author Carl Byington <carl@five-ten-sg.com>
date Sun, 22 Jun 2014 13:02:36 -0700
parents 1350adb077b1
children 3ca280646f2d
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Sun Jun 22 07:57:20 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalMonitor.java	Sun Jun 22 13:02:36 2014 -0700
@@ -316,9 +316,9 @@
         sendScreen(MONITOR_CMD_ACTIVATE);
     }
 
-    public synchronized void keyState(int b) {
+    public synchronized void keyState(boolean down) {
         char[] arg = new char[3];
-        arg[2] = (char)(b & 0x0000ffff);
+        arg[2] = (char)((down) ? 1 : 0);
         monitorWrite(MONITOR_CMD_KEYSTATE, arg);
     }