mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-06-09 12:31:40 +12:00
Add scripting support for Android (#369)
* Lua Patcher and code editor: initial commit * Code Editor + Lua Patchs + Fixes * some fixes * bonk --------- Co-authored-by: wheremyfoodat <44909372+wheremyfoodat@users.noreply.github.com>
This commit is contained in:
parent
23770e2704
commit
b5718010ee
35 changed files with 1639 additions and 54 deletions
|
@ -80,6 +80,12 @@ AlberFunction(void, LoadRom)(JNIEnv* env, jobject obj, jstring path) {
|
|||
env->ReleaseStringUTFChars(path, pathStr);
|
||||
}
|
||||
|
||||
AlberFunction(void, LoadLuaScript)(JNIEnv* env, jobject obj, jstring script) {
|
||||
const char* scriptStr = env->GetStringUTFChars(script, nullptr);
|
||||
emulator->getLua().loadString(scriptStr);
|
||||
env->ReleaseStringUTFChars(script, scriptStr);
|
||||
}
|
||||
|
||||
AlberFunction(void, TouchScreenDown)(JNIEnv* env, jobject obj, jint x, jint y) { hidService->setTouchScreenPress((u16)x, (u16)y); }
|
||||
AlberFunction(void, TouchScreenUp)(JNIEnv* env, jobject obj) { hidService->releaseTouchScreen(); }
|
||||
AlberFunction(void, KeyUp)(JNIEnv* env, jobject obj, jint keyCode) { hidService->releaseKey((u32)keyCode); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue