seleuco / MAME4droid-2024

MAME4droid 2024 is developed by David Valdeita (Seleuco) as a port of the latest MAME emulator by MAMEDev and contributors. It emulates arcade games and systems like ZX Spectrum, Amstrad CPC, MSX etc. This version of MAME support over 40000 different ROMs.
GNU General Public License v2.0
86 stars 14 forks source link

add built-in keyboards #42

Open soundsnow opened 3 weeks ago

soundsnow commented 3 weeks ago

Can you add these built-in keyboards? choose one from the built-in keyboards and the installed IMEs. They are written in XML instead of PNG files to prevent the game screen from being obscured. Yes, they are not pictures, so you can see the game screen displayed on the computer screen in Landscape mode Why built-in keyboards are needed? Installed IMEs can be uninstalled with ADB, no one likes to connect a physical keyboard for their Android phone, most virtual keyboards are missing a lot of keys. The keyboards can be mapped to console buttons and controller buttons, and can also play computer games, typing games and Mahjong arcade games. The keyboard in the picture can be switched between QWERTY and Numpad directly, for Portrait and Landscape there are different layouts, the text on the keyboard is switched by pressing certain keys, the keyboard light is available in two colors (transparent: none, gray: once, purple: many times) It looks like even the virtual keyboard installed by @seleuco doesn't have this many keyboard keys Screenshot_20240712-134753_Magic DosBox Free Screenshot_20240712-134916_Magic DosBox Free Screenshot_20240712-134929_Magic DosBox Free Screenshot_20240712-135010_Magic DosBox Free Screenshot_20240712-135026_Trebuchet Screenshot_20240712-135041_Trebuchet Screenshot_20240712-135047_Trebuchet Screenshot_20240712-135054_Trebuchet

soundsnow commented 3 weeks ago

Hi @seleuco This simply won't play 4:3 or 16:9 computer and Mahjong arcade games in landscape mode, you'll have to add built-in virtual keyboards And after I opened the installed virtual keyboard, those button images of yours are still showing up, like that red button Screenshot_20240712-141738_MAME4droid 2024 you said systems like ZX Spectrum, Amstrad CPC, MSX etc. But little has been done to improve these computers much, and even the most basic keyboards don't get a great experience

soundsnow commented 3 weeks ago

Here's part of the XML keyboard code for almost all the keys in the screenshot, not including Numpad because I know @seleuco 'll do that! src/main/res/layout/?.xml navkeyboard.txt pckeyboardlayout.txt pckeyboardlayout_ru.txt pckeyboardlayout_simple.txt pckeyboardlayout_simple_ru.txt

soundsnow commented 3 weeks ago

There are many game consoles that also support mouse, keypad and computer keyboard or mahjong keyboard

Even Namco and Sega have arcade games that require the use of a computer keyboard and mouse, such as The Typing of The Dead and Counter Strike NEO. Japanese mahjong games usually require roughly close to 30 keys. For sudoku, a keypad is necessary!

soundsnow commented 3 weeks ago

The game screen is best displayed at the top of the screen (notch). For small screen Android phones, both hands should be farther apart, especially for games that require both keyboard and mouse, such as id and Valve's 3D FPS games. One more thing, rotating the screen by 90 degrees reduces the blocking of the game screen by the virtual keyboard in Portrait mode.