From 326eeca306f7bfb53ae3685eef18978dd81e587e Mon Sep 17 00:00:00 2001 From: Muhammad Rifqi Priyo Susanto Date: Wed, 11 Apr 2018 03:55:17 +0700 Subject: Android: Replace movement buttons with joystick (#7126) * Android: Replace movement buttons with joystick Replace movement control buttons (arrows at bottom left screen) with virtual joystick. Joystick has 8 directions (same as keyboard). Basically, just map it to keyboard input. Joystick applies only on left 1/3 of screen. Joystick's position can be fixed by enabling fixed_virtual_joystick setting. Three new images: (1) placeholder joystick, (2) joystick container (background), and (3) joystick cursor. Remove unused images: movement control buttons (*_arrow.png). New data type: touch_gui_joystick_move_id Joystick's fixed position is spaced one button size from bottom and from left of screen. Remove unused variable: m_joystick_downlocation --- textures/base/pack/down_arrow.png | Bin 373 -> 0 bytes textures/base/pack/joystick_bg.png | Bin 0 -> 5733 bytes textures/base/pack/joystick_center.png | Bin 0 -> 3073 bytes textures/base/pack/joystick_off.png | Bin 0 -> 5880 bytes textures/base/pack/left_arrow.png | Bin 400 -> 0 bytes textures/base/pack/right_arrow.png | Bin 396 -> 0 bytes textures/base/pack/up_arrow.png | Bin 373 -> 0 bytes 7 files changed, 0 insertions(+), 0 deletions(-) delete mode 100644 textures/base/pack/down_arrow.png create mode 100755 textures/base/pack/joystick_bg.png create mode 100755 textures/base/pack/joystick_center.png create mode 100755 textures/base/pack/joystick_off.png delete mode 100644 textures/base/pack/left_arrow.png delete mode 100644 textures/base/pack/right_arrow.png delete mode 100644 textures/base/pack/up_arrow.png (limited to 'textures/base') diff --git a/textures/base/pack/down_arrow.png b/textures/base/pack/down_arrow.png deleted file mode 100644 index 60ac49762..000000000 Binary files a/textures/base/pack/down_arrow.png and /dev/null differ diff --git a/textures/base/pack/joystick_bg.png b/textures/base/pack/joystick_bg.png new file mode 100755 index 000000000..15d3ff883 Binary files /dev/null and b/textures/base/pack/joystick_bg.png differ diff --git a/textures/base/pack/joystick_center.png b/textures/base/pack/joystick_center.png new file mode 100755 index 000000000..fad012c5f Binary files /dev/null and b/textures/base/pack/joystick_center.png differ diff --git a/textures/base/pack/joystick_off.png b/textures/base/pack/joystick_off.png new file mode 100755 index 000000000..6eef488ae Binary files /dev/null and b/textures/base/pack/joystick_off.png differ diff --git a/textures/base/pack/left_arrow.png b/textures/base/pack/left_arrow.png deleted file mode 100644 index 6076241c5..000000000 Binary files a/textures/base/pack/left_arrow.png and /dev/null differ diff --git a/textures/base/pack/right_arrow.png b/textures/base/pack/right_arrow.png deleted file mode 100644 index dc9067440..000000000 Binary files a/textures/base/pack/right_arrow.png and /dev/null differ diff --git a/textures/base/pack/up_arrow.png b/textures/base/pack/up_arrow.png deleted file mode 100644 index 840040fcb..000000000 Binary files a/textures/base/pack/up_arrow.png and /dev/null differ -- cgit v1.2.3