Skip to content

Commit c97fd4d

Browse files
committed
uinput
1 parent cf2a832 commit c97fd4d

13 files changed

Lines changed: 542 additions & 297 deletions

File tree

‎.idea/misc.xml‎

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.idea/modules.xml‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎app/CMakeLists.txt‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ add_library( # Sets the name of the library.
4747
src/main/jni/lua/lundump.c
4848
src/main/jni/lua/lvm.c
4949
src/main/jni/lua/lzio.c
50-
src/main/jni/android/androidlib.c)
50+
51+
src/main/jni/android/androidlib.c
52+
src/main/jni/android/input_event.c)
5153

5254
add_library( # Sets the name of the library.
5355
luajava
@@ -78,10 +80,12 @@ find_library( # Sets the name of the path variable.
7880
# you want CMake to locate.
7981
log )
8082

83+
84+
8185
target_link_libraries( # Specifies the target library.
8286
luajava
8387

8488
# Links the target library to the log library
8589
# included in the NDK.
8690
lua
87-
${log-lib})
91+
${log-lib})

‎app/src/main/assets/test.lua‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
12
print(os.time())
2-
system.sleep(5000)
3+
system.sleep(5)
4+
w,h=system.getScreenSize()
5+
system.touch(600, 170)
36
print(os.time())
47

58
print(os.time())
6-
w,h=system.getScreenSize()
9+
710
print(os.time())
811
print(w)
912
print(h)

0 commit comments

Comments
 (0)