logcat.py

This commit is contained in:
juloo
2015-08-04 21:07:28 +02:00
parent 40885f5760
commit bee4334626
4 changed files with 78 additions and 2 deletions

View File

@ -38,6 +38,18 @@ public class Keyboard2 extends InputMethodService
{
if (getCurrentInputConnection() == null)
return ;
// DEBUG
if (_inputView.isHardwareAccelerated())
log("LOL isHardwareAccelerated");
String k = "Key ";
if ((flags & KeyValue.FLAG_CTRL) != 0)
k += "Ctrl-";
if ((flags & KeyValue.FLAG_ALT) != 0)
k += "Alt-";
if ((flags & KeyValue.FLAG_SHIFT) != 0)
k += "Shift-";
log(k + key.getName());
// -
if (key.getEventCode() == KeyValue.EVENT_CONFIG)
{
// TODO improve this shit