This commit is contained in:
Donovan Preston 2014-08-05 15:50:59 -04:00
Родитель 28bb1bef1b
Коммит 52e82c51c4
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -518,6 +518,7 @@ Native["javax/microedition/lcdui/ImageDataFactory.createMutableImageData.(Ljavax
data.class.getField("height", "I").set(data, height);
data.class.getField("nativeImageData", "I").set(data, img);
}
Native["com/sun/midp/chameleon/layers/SoftButtonLayer.isNativeSoftButtonLayerSupported0.()Z"] = function(ctx, stack) {
stack.push(0);
}
@ -1216,6 +1217,11 @@ Native["javax/microedition/lcdui/KeyConverter.getSystemKey.(I)I"] = function(ctx
}
}
Native["javax/microedition/lcdui/KeyConverter.getKeyName.(I)Ljava/lang/String;"] = function(ctx, stack) {
var keyCode = stack.pop();
stack.push(CLASSES.newString(String.fromCharCode(keyCode)));
}
Native["com/sun/midp/io/j2me/push/ConnectionRegistry.checkInByMidlet0.(ILjava/lang/String;)V"] = function(ctx, stack) {
var className = stack.pop(), suiteId = stack.pop();
}