Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
147:1350adb077b1 | 148:69333ca1563c |
---|---|
314 | 314 |
315 public synchronized void activate() { | 315 public synchronized void activate() { |
316 sendScreen(MONITOR_CMD_ACTIVATE); | 316 sendScreen(MONITOR_CMD_ACTIVATE); |
317 } | 317 } |
318 | 318 |
319 public synchronized void keyState(int b) { | 319 public synchronized void keyState(boolean down) { |
320 char[] arg = new char[3]; | 320 char[] arg = new char[3]; |
321 arg[2] = (char)(b & 0x0000ffff); | 321 arg[2] = (char)((down) ? 1 : 0); |
322 monitorWrite(MONITOR_CMD_KEYSTATE, arg); | 322 monitorWrite(MONITOR_CMD_KEYSTATE, arg); |
323 } | 323 } |
324 | 324 |
325 public synchronized void cursorMove(int l, int c) { | 325 public synchronized void cursorMove(int l, int c) { |
326 moved = true; | 326 moved = true; |