diff --git a/assets/License.txt b/assets/License.txt new file mode 100644 index 00000000..c9f1a93b --- /dev/null +++ b/assets/License.txt @@ -0,0 +1,4 @@ +These PNG files are copyright to Emile Belanger. +They are permitted for use in SDLxash3D Android port, full copyright is owned by Emile Belanger. +Other use not permitted without permission from Emile Belanger. +emile.belanger@gmail.com \ No newline at end of file diff --git a/assets/arrow_down.png b/assets/arrow_down.png new file mode 100644 index 00000000..d353daa4 Binary files /dev/null and b/assets/arrow_down.png differ diff --git a/assets/arrow_left.png b/assets/arrow_left.png new file mode 100644 index 00000000..4328c08c Binary files /dev/null and b/assets/arrow_left.png differ diff --git a/assets/arrow_right.png b/assets/arrow_right.png new file mode 100644 index 00000000..020be062 Binary files /dev/null and b/assets/arrow_right.png differ diff --git a/assets/arrow_up.png b/assets/arrow_up.png new file mode 100644 index 00000000..d94cfc27 Binary files /dev/null and b/assets/arrow_up.png differ diff --git a/assets/bstone_ps_config b/assets/bstone_ps_config new file mode 100644 index 00000000..0005a06b Binary files /dev/null and b/assets/bstone_ps_config differ diff --git a/assets/crouch.png b/assets/crouch.png new file mode 100644 index 00000000..18ad4b55 Binary files /dev/null and b/assets/crouch.png differ diff --git a/assets/enter.png b/assets/enter.png new file mode 100644 index 00000000..f74f327b Binary files /dev/null and b/assets/enter.png differ diff --git a/assets/gamma.png b/assets/gamma.png new file mode 100644 index 00000000..7a019f68 Binary files /dev/null and b/assets/gamma.png differ diff --git a/assets/jump.png b/assets/jump.png new file mode 100644 index 00000000..286d683d Binary files /dev/null and b/assets/jump.png differ diff --git a/assets/key_+.png b/assets/key_+.png new file mode 100644 index 00000000..0eff7e65 Binary files /dev/null and b/assets/key_+.png differ diff --git a/assets/key_-.png b/assets/key_-.png new file mode 100644 index 00000000..e611ec65 Binary files /dev/null and b/assets/key_-.png differ diff --git a/assets/key_0.png b/assets/key_0.png new file mode 100644 index 00000000..a0f6d21c Binary files /dev/null and b/assets/key_0.png differ diff --git a/assets/key_1.png b/assets/key_1.png new file mode 100644 index 00000000..42f22e83 Binary files /dev/null and b/assets/key_1.png differ diff --git a/assets/key_2.png b/assets/key_2.png new file mode 100644 index 00000000..28005d2d Binary files /dev/null and b/assets/key_2.png differ diff --git a/assets/key_3.png b/assets/key_3.png new file mode 100644 index 00000000..37eac4c5 Binary files /dev/null and b/assets/key_3.png differ diff --git a/assets/key_4.png b/assets/key_4.png new file mode 100644 index 00000000..9a3ee73e Binary files /dev/null and b/assets/key_4.png differ diff --git a/assets/key_5.png b/assets/key_5.png new file mode 100644 index 00000000..1a8abccd Binary files /dev/null and b/assets/key_5.png differ diff --git a/assets/key_6.png b/assets/key_6.png new file mode 100644 index 00000000..87d5dee1 Binary files /dev/null and b/assets/key_6.png differ diff --git a/assets/key_7.png b/assets/key_7.png new file mode 100644 index 00000000..06cee9e6 Binary files /dev/null and b/assets/key_7.png differ diff --git a/assets/key_8.png b/assets/key_8.png new file mode 100644 index 00000000..445dba34 Binary files /dev/null and b/assets/key_8.png differ diff --git a/assets/key_9.png b/assets/key_9.png new file mode 100644 index 00000000..bce79c2a Binary files /dev/null and b/assets/key_9.png differ diff --git a/assets/key_f1.png b/assets/key_f1.png new file mode 100644 index 00000000..664ad046 Binary files /dev/null and b/assets/key_f1.png differ diff --git a/assets/key_f10.png b/assets/key_f10.png new file mode 100644 index 00000000..6a15825a Binary files /dev/null and b/assets/key_f10.png differ diff --git a/assets/keyboard.png b/assets/keyboard.png new file mode 100644 index 00000000..130755c4 Binary files /dev/null and b/assets/keyboard.png differ diff --git a/assets/load.png b/assets/load.png new file mode 100644 index 00000000..95331ba9 Binary files /dev/null and b/assets/load.png differ diff --git a/assets/look_arrow.png b/assets/look_arrow.png new file mode 100644 index 00000000..878d054f Binary files /dev/null and b/assets/look_arrow.png differ diff --git a/assets/map.png b/assets/map.png new file mode 100644 index 00000000..932fe530 Binary files /dev/null and b/assets/map.png differ diff --git a/assets/next_weap.png b/assets/next_weap.png new file mode 100644 index 00000000..3eb9acd2 Binary files /dev/null and b/assets/next_weap.png differ diff --git a/assets/prev_weap.png b/assets/prev_weap.png new file mode 100644 index 00000000..9e2fa321 Binary files /dev/null and b/assets/prev_weap.png differ diff --git a/assets/red_cross.png b/assets/red_cross.png new file mode 100644 index 00000000..4551068e Binary files /dev/null and b/assets/red_cross.png differ diff --git a/assets/save.png b/assets/save.png new file mode 100644 index 00000000..c6d3df16 Binary files /dev/null and b/assets/save.png differ diff --git a/assets/settings.png b/assets/settings.png new file mode 100644 index 00000000..a66c5cd4 Binary files /dev/null and b/assets/settings.png differ diff --git a/assets/settings_bars.png b/assets/settings_bars.png new file mode 100644 index 00000000..463d5e4b Binary files /dev/null and b/assets/settings_bars.png differ diff --git a/assets/shoot.png b/assets/shoot.png new file mode 100644 index 00000000..7ecadf2a Binary files /dev/null and b/assets/shoot.png differ diff --git a/assets/show_weapons.png b/assets/show_weapons.png new file mode 100644 index 00000000..58e2ed3e Binary files /dev/null and b/assets/show_weapons.png differ diff --git a/assets/strafe_arrow.png b/assets/strafe_arrow.png new file mode 100644 index 00000000..9dae7d05 Binary files /dev/null and b/assets/strafe_arrow.png differ diff --git a/assets/use.png b/assets/use.png new file mode 100644 index 00000000..8acffb10 Binary files /dev/null and b/assets/use.png differ diff --git a/jni/Application.mk b/jni/Application.mk index e481e89c..cd700236 100644 --- a/jni/Application.mk +++ b/jni/Application.mk @@ -1,21 +1,29 @@ - -# Uncomment this if you're using STL in your project -# See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information -# APP_STL := stlport_static - -APPLICATIONMK_PATH = $(call my-dir) - -SDL_PATH := $(APPLICATIONMK_PATH)/src/SDL2 - -#SDL_IMAGE_PATH := $(APPLICATIONMK_PATH)/src/SDL2_image/ - -NANOGL_PATH := $(APPLICATIONMK_PATH)/src/NanoGL/nanogl - -XASH3D_PATH := $(APPLICATIONMK_PATH)/src/Xash3D/xash3d - -XASHXT_PATH := $(APPLICATIONMK_PATH)/src/XashXT/XashXT - -HLSDK_PATH := $(APPLICATIONMK_PATH)/src/HLSDK/halflife/ - -APP_ABI := armeabi-v7a x86 -APP_MODULES := SDL2 xash menu client server NanoGL + +# Uncomment this if you're using STL in your project +# See CPLUSPLUS-SUPPORT.html in the NDK documentation for more information + APP_STL := stlport_static + + + +APPLICATIONMK_PATH = $(call my-dir) + +ifeq ($(EMILE),1) +SDL_PATH := $(APPLICATIONMK_PATH)/src/SDL-mirror +else +SDL_PATH := $(APPLICATIONMK_PATH)/src/SDL2 +endif + + +TOUCHCONTROLS_PATH := $(APPLICATIONMK_PATH)/src/MobileTouchControls + + +NANOGL_PATH := $(APPLICATIONMK_PATH)/src/NanoGL/nanogl + +XASH3D_PATH := $(APPLICATIONMK_PATH)/src/Xash3D/xash3d + +XASHXT_PATH := $(APPLICATIONMK_PATH)/src/XashXT/XashXT + +HLSDK_PATH := $(APPLICATIONMK_PATH)/src/HLSDK/halflife/ + +APP_ABI := armeabi-v7a x86 +APP_MODULES := SDL2 xash menu client server NanoGL diff --git a/jni/src/HLSDK/halflife b/jni/src/HLSDK/halflife deleted file mode 120000 index eb8bb8da..00000000 --- a/jni/src/HLSDK/halflife +++ /dev/null @@ -1 +0,0 @@ -/home/a1ba/projects/Xash3D/halflife \ No newline at end of file diff --git a/jni/src/HLSDK/halflife b/jni/src/HLSDK/halflife new file mode 160000 index 00000000..c3b365fe --- /dev/null +++ b/jni/src/HLSDK/halflife @@ -0,0 +1 @@ +Subproject commit c3b365fe0831e68199bb39e9f565ca724c7cc430 diff --git a/jni/src/NanoGL/nanogl b/jni/src/NanoGL/nanogl deleted file mode 120000 index 4476145c..00000000 --- a/jni/src/NanoGL/nanogl +++ /dev/null @@ -1 +0,0 @@ -/home/a1ba/projects/Xash3D/nanogl \ No newline at end of file diff --git a/jni/src/NanoGL/nanogl b/jni/src/NanoGL/nanogl new file mode 160000 index 00000000..63045ea1 --- /dev/null +++ b/jni/src/NanoGL/nanogl @@ -0,0 +1 @@ +Subproject commit 63045ea16759232df455140efd8d5ed67986882d diff --git a/jni/src/Xash3D/xash3d b/jni/src/Xash3D/xash3d deleted file mode 120000 index 0750ec38..00000000 --- a/jni/src/Xash3D/xash3d +++ /dev/null @@ -1 +0,0 @@ -/home/a1ba/projects/Xash3D/xash3d \ No newline at end of file diff --git a/jni/src/Xash3D/xash3d b/jni/src/Xash3D/xash3d new file mode 160000 index 00000000..215d7a35 --- /dev/null +++ b/jni/src/Xash3D/xash3d @@ -0,0 +1 @@ +Subproject commit 215d7a35d99850dcbc38d37fb8fe9b4166fefcf3 diff --git a/jni/src/XashXT/XashXT b/jni/src/XashXT/XashXT deleted file mode 120000 index ed3bdbe2..00000000 --- a/jni/src/XashXT/XashXT +++ /dev/null @@ -1 +0,0 @@ -/home/a1ba/projects/Xash3D/XashXT \ No newline at end of file diff --git a/jni/src/XashXT/XashXT b/jni/src/XashXT/XashXT new file mode 160000 index 00000000..33130cad --- /dev/null +++ b/jni/src/XashXT/XashXT @@ -0,0 +1 @@ +Subproject commit 33130cade1af08c7ed12479f0e0ecab489851972 diff --git a/libs/com.bda.controller.jar b/libs/com.bda.controller.jar new file mode 100644 index 00000000..f71dbece Binary files /dev/null and b/libs/com.bda.controller.jar differ diff --git a/res/drawable/add.png b/res/drawable/add.png new file mode 100644 index 00000000..3c5531d3 Binary files /dev/null and b/res/drawable/add.png differ diff --git a/res/drawable/cog.png b/res/drawable/cog.png new file mode 100644 index 00000000..18fe5183 Binary files /dev/null and b/res/drawable/cog.png differ diff --git a/res/drawable/gamepad.png b/res/drawable/gamepad.png new file mode 100644 index 00000000..9812a7ff Binary files /dev/null and b/res/drawable/gamepad.png differ diff --git a/res/drawable/gamepad_menu.png b/res/drawable/gamepad_menu.png new file mode 100644 index 00000000..7943353e Binary files /dev/null and b/res/drawable/gamepad_menu.png differ diff --git a/res/drawable/help.png b/res/drawable/help.png new file mode 100644 index 00000000..104a2c85 Binary files /dev/null and b/res/drawable/help.png differ diff --git a/res/drawable/joystick.png b/res/drawable/joystick.png new file mode 100644 index 00000000..cbfe03af Binary files /dev/null and b/res/drawable/joystick.png differ diff --git a/res/drawable/layout_sel_background.xml b/res/drawable/layout_sel_background.xml new file mode 100644 index 00000000..a50c6766 --- /dev/null +++ b/res/drawable/layout_sel_background.xml @@ -0,0 +1,17 @@ + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/controls_listview_item.xml b/res/layout/controls_listview_item.xml new file mode 100644 index 00000000..2bbead9d --- /dev/null +++ b/res/layout/controls_listview_item.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/edit_controls_listview_item.xml b/res/layout/edit_controls_listview_item.xml new file mode 100644 index 00000000..0317d239 --- /dev/null +++ b/res/layout/edit_controls_listview_item.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout/fragment_gamepad.xml b/res/layout/fragment_gamepad.xml new file mode 100644 index 00000000..d4ba93c2 --- /dev/null +++ b/res/layout/fragment_gamepad.xml @@ -0,0 +1,49 @@ + + + + + + + + +