Android Virtual Control Buttons Are Invisible

Found a bug in R'n'D? Report it here!

Moderators: Flumminator, Zomis

Post Reply
MateFizyChem
Posts: 23
Joined: Sun Oct 30, 2016 7:16 pm

Android Virtual Control Buttons Are Invisible

Post by MateFizyChem » Tue Nov 01, 2016 9:24 pm

And it is not clear how to drop/snap in both control modes(experimenting will not make it clear).

User avatar
Eizzoux
Posts: 99
Joined: Wed Oct 30, 2013 5:32 am
Location: Russia
Contact:

Re: Android Virtual Control Buttons Are Invisible

Post by Eizzoux » Wed Nov 02, 2016 5:49 am

Upper is snap field button, lower is drop item button... And yeah, this is very annoying so... I recommend you to install GamePad:
1) install it;
2) Unlock GamePad in "Configure input methods";
3) Change keyboard type to GamePad in "Set current input method";
4) Make sure that "DosBox Turbo / Xbox 360" is disabled and "GamePad notification" is enabled;
5) Go to GamePad settings and change controls like that: DPad Up - DPad Up, DPad Down - DPad Down, DPad Left - DPad Left, DPad Right - DPad Right, Button A/B - Left Ctrl/Right Ctrl (you can switch them between), Button X - SPACE and Button Y - ESC;
6) Press on "Test GamePad" field, make sure that GamePad notification on top is active, exit GamePad, open R'n'D and then press on GamePad notification.
Screenshots: [link 1] | [link 2] | [link 3]
Nothing in here...*

User avatar
Holger
Site Admin
Posts: 2656
Joined: Fri Jun 18, 2004 4:13 pm
Location: Germany
Contact:

Re: Android Virtual Control Buttons Are Invisible

Post by Holger » Fri Nov 04, 2016 7:23 am

MateFizyChem wrote:
And it is not clear how to drop/snap in both control modes(experimenting will not make it clear).
You are absolutely right -- this part of the R'n'D Android port is not "ready for prime time" yet.

The obvious solution would be to (optionally) draw the virtual control buttons over the game screen -- unfortunately, this currently does not work, because R'n'D really uses a (for example) 672x560 screen on the (usually) 16:9 or 16:10 screen of the Android smartphone or tablet, which is then scaled to fit the screen by SDL2. This means that the game can get touch events from the left and right part of the screen, but cannot draw to it. (See Eizzoux' screen shots, which show this quite well -- the GamePad buttons are also drawn to the black left/right areas, because this is a separate application which overlays the game it controls.)

So I can see two possible solutions for now: Use a logical screen resolution that matches the physical screen resolution (aspect ratio wise), or always use the pysical screen resolution (or aspect ratio) by adding black areas to the left and right, which can then be drawn to.

A solution which would work out of the box with the current implementation would be to display a help screen which shows how the virtual buttons are arranged on the screen (although this would not be available in-game), so one would at least know which part of the screen does what when touched.

A third solution I am thinking of is a third input method that does not use virtual buttons at all, but directly controls the player on the playfield, but it would also need some graphical explanation, of course, to know how it works. But it wouldn't require on-screen display of virtual buttons. But it's not implemented yet.

Last but not least: Eizzoux, thanks a lot for your very helpful recommendation of the "GamePad" app, your very good explanation how to use it, and the helpful screenshots that demonstrates how things work! :-)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest