AOF-Dev / MCinaBox

MCinaBox - A Minecraft: Java Edition Launcher for Android. An Encapsulation of [CosineMath's BoatApp](https://github.com/AOF-Dev/BoatApp).
GNU General Public License v3.0
1.27k stars 180 forks source link

Suggestion - Default keyboard layout (based on MCPE) #407

Open vico93 opened 4 years ago

vico93 commented 4 years ago

When i used MCInABox for the first time i struggled needing to make a keyboard layout to play.

Would be possible to ship a "default" layout based on Pocket Edition? image

I noticed in earlier issues about this you saying its difficult to make a default layout because of different screen resolutions. Can you make possible to specify percentage of screen size instead of absolute size/position in pixels (like CSS can do positioning elements in HTML pages)?

longjunyu2 commented 4 years ago

This problem is already being perfected. The new custom keyboard layout file has screen size already. Just need time to finish this function.

ghost commented 4 years ago

I could make some icons for controls, let me know just what kind of style you want.

longjunyu2 commented 4 years ago

@snajdovski The logo you designed is very cool! And I will add it to the project in the next update. I've always been bothered by interface beautification because I don't know anything about interface decoration. This image shows several of the controls currently used by mcinabox, namely, on-screen keyboard, on-screen mouse and virtual rocker. They look simple, but I'd like them to be colorful. XD However, the decoration of the keyboard may be a little difficult, because some of the larger keys are divided into two parts (such as enter). Maybe the brief style is more suitable for these buttons. The layouts of these controller in gamecontroller/src/main/res/layout/virtual_keyboard.xm , virtual_joystick.xml and virtual_mouse.xml that may be help to your work.

longjunyu2 commented 4 years ago

the pic Screenshot_20200928_190740_com aof mcinabox

ghost commented 4 years ago

the pic Screenshot_20200928_190740_com aof mcinabox

The Controllers are not that bad tbh, they should stay simple as they are just an overlay on a game that is meant to be run on a PC may be the far left button needs some help, about the keyboard I am not sure. Look for inspiration from Emulators and see if they have some better implementation of keyboards ( I doubt)