mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
fix enter key
This commit is contained in:
parent
51429bd8d6
commit
14bbdcb139
2 changed files with 10 additions and 8 deletions
|
@ -1199,14 +1199,16 @@ JNIEXPORT void JNICALL Java_com_android_godot_GodotLib_key(JNIEnv * env, jobject
|
|||
ievent.key.mod.control=false;
|
||||
ievent.key.echo=false;
|
||||
|
||||
if (val == 61448) {
|
||||
if (val == '\n')
|
||||
{
|
||||
ievent.key.scancode = KEY_ENTER;
|
||||
}else if (val == 61448) {
|
||||
ievent.key.scancode = KEY_BACKSPACE;
|
||||
ievent.key.unicode = KEY_BACKSPACE;
|
||||
};
|
||||
if (val == 61453) {
|
||||
} else if (val == 61453) {
|
||||
ievent.key.scancode = KEY_ENTER;
|
||||
ievent.key.unicode = KEY_ENTER;
|
||||
};
|
||||
}
|
||||
|
||||
input_mutex->lock();
|
||||
key_events.push_back(ievent);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue