Hi,
I just got a brand new Memor K, Android 9, build 1.00.04.20200806 and wanted to disable SCAN button (the big orange one at the keyboard). I used the mapping to acheive it.
Reading another post I do see that SDK is compatible for Memor K.
For left & right scan keys there is no problem but I can’t find the way for the SCAN at the keyboard. I tried the following to map:
(new KeyboardManager()).mapKeyCode(new VScanEntry(KeyboardManager.VScanCode.VSCAN_AUTOSCAN_TRIGGER), new KeyCodeEntry(KeyEvent.KEYCODE_UNKNOWN));
and also:
(new KeyboardManager()).mapKeyCode(new VScanEntry(KeyboardManager.VScanCode.VSCAN_FRONT_TRIGGER), new KeyCodeEntry(KeyEvent.KEYCODE_UNKNOWN));
but this only works with VSCAN_LEFT_TRIGGER, VSCAN_RIGHT_TRIGGER and VSCAN_PISTOL_TRIGGER
If a try to see the triggers of the device as shown here:
KeyboardManager keyManager = new KeyboardManager();
for (Trigger trigger : keyManager.getAvailableTriggers()) {
boolean result = trigger.setEnabled(false);
if(result){
//operation done
}else{
//do something in case of failure
}
}
I only see triggers for Left, Right keys and Pistol.
How can I disable the keyboard orange SCAN key on this device programmatically? It seems that is straight connected to the scan engine)
Thanks in advance for your help !
Cheers