ok slick sui is history but when i load my gdxgamecontainer as desktop i get this errors for the fonts;
Wed Apr 25 13:54:40 CEST 2012 ERROR:Creating application: com.badlogic.gdx.backends.lwjgl.LwjglApplication@1503a3
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists
Wed Apr 25 13:54:42 CEST 2012 ERROR:Fail: Unsupported: glGenLists
also, now i use the slick/gui/textfields, but when i run it in the gdxgamecontainer it crashes on this line
g.setWorldClip(x,y,width, height);
when i comment it, it works but i see that the font is completely different mapped to my keys on the keyboard
maybe these are linked to the error above?
private static final int DISPLAY_LIST_CACHE_SIZE = 600;
/** The highest character that AngelCodeFont will support. */
private static final int MAX_CHAR = 800;
so at the end why are my characters mixed up when i run it on the android and not on slick desktop?
<edit>
so on my labels the characters are correct, but if i type in the textbox they are different
seems like i use a different keyboard or something..
i think it is because of the differences in the Input class
for slick you have the translation of the key in the keyboard but not for android..
(on the poll method)
Code:
while (org.lwjgl.input.Keyboard.next()) {
if (org.lwjgl.input.Keyboard.getEventKeyState()) {
int eventKey = resolveEventKey(org.lwjgl.input.Keyboard.getEventKey(), org.lwjgl.input.Keyboard.getEventCharacter());
keys[eventKey] = org.lwjgl.input.Keyboard.getEventCharacter();
pressed[eventKey] = true;
nextRepeat[eventKey] = System.currentTimeMillis() + keyRepeatInitial;
consumed = false;
for (Object keyListener : keyListeners) {
KeyListener listener = (KeyListener) keyListener;
if (listener.isAcceptingInput()) {
listener.keyPressed(eventKey, org.lwjgl.input.Keyboard.getEventCharacter());
if (consumed) {
break;
}
}
}
} else {
int eventKey = resolveEventKey(org.lwjgl.input.Keyboard.getEventKey(), org.lwjgl.input.Keyboard.getEventCharacter());
nextRepeat[eventKey] = 0;
consumed = false;
for (Object keyListener : keyListeners) {
KeyListener listener = (KeyListener) keyListener;
if (listener.isAcceptingInput()) {
listener.keyReleased(eventKey, keys[eventKey]);
if (consumed) {
break;
}
}
}
}
}
tx