diff options
author | Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com> | 2018-04-11 03:55:17 +0700 |
---|---|---|
committer | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-04-10 22:55:17 +0200 |
commit | 326eeca306f7bfb53ae3685eef18978dd81e587e (patch) | |
tree | d2a8b68eae06ed2982e8fed2562783a432dc7171 /textures/base/pack | |
parent | 22ebbe136a8a90bc23d7f910a3dee5bf41632115 (diff) | |
download | minetest-326eeca306f7bfb53ae3685eef18978dd81e587e.tar.gz minetest-326eeca306f7bfb53ae3685eef18978dd81e587e.tar.bz2 minetest-326eeca306f7bfb53ae3685eef18978dd81e587e.zip |
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
Diffstat (limited to 'textures/base/pack')
-rw-r--r-- | textures/base/pack/down_arrow.png | bin | 373 -> 0 bytes |
-rwxr-xr-x | textures/base/pack/joystick_bg.png | bin | 0 -> 5733 bytes |
-rwxr-xr-x | textures/base/pack/joystick_center.png | bin | 0 -> 3073 bytes |
-rwxr-xr-x | textures/base/pack/joystick_off.png | bin | 0 -> 5880 bytes |
-rw-r--r-- | textures/base/pack/left_arrow.png | bin | 400 -> 0 bytes |
-rw-r--r-- | textures/base/pack/right_arrow.png | bin | 396 -> 0 bytes |
-rw-r--r-- | textures/base/pack/up_arrow.png | bin | 373 -> 0 bytes |
7 files changed, 0 insertions, 0 deletions
diff --git a/textures/base/pack/down_arrow.png b/textures/base/pack/down_arrow.png Binary files differdeleted file mode 100644 index 60ac49762..000000000 --- a/textures/base/pack/down_arrow.png +++ /dev/null diff --git a/textures/base/pack/joystick_bg.png b/textures/base/pack/joystick_bg.png Binary files differnew file mode 100755 index 000000000..15d3ff883 --- /dev/null +++ b/textures/base/pack/joystick_bg.png diff --git a/textures/base/pack/joystick_center.png b/textures/base/pack/joystick_center.png Binary files differnew file mode 100755 index 000000000..fad012c5f --- /dev/null +++ b/textures/base/pack/joystick_center.png diff --git a/textures/base/pack/joystick_off.png b/textures/base/pack/joystick_off.png Binary files differnew file mode 100755 index 000000000..6eef488ae --- /dev/null +++ b/textures/base/pack/joystick_off.png diff --git a/textures/base/pack/left_arrow.png b/textures/base/pack/left_arrow.png Binary files differdeleted file mode 100644 index 6076241c5..000000000 --- a/textures/base/pack/left_arrow.png +++ /dev/null diff --git a/textures/base/pack/right_arrow.png b/textures/base/pack/right_arrow.png Binary files differdeleted file mode 100644 index dc9067440..000000000 --- a/textures/base/pack/right_arrow.png +++ /dev/null diff --git a/textures/base/pack/up_arrow.png b/textures/base/pack/up_arrow.png Binary files differdeleted file mode 100644 index 840040fcb..000000000 --- a/textures/base/pack/up_arrow.png +++ /dev/null |