amiberry icon indicating copy to clipboard operation
amiberry copied to clipboard

Amiberry - virtual keyboard

Open tukicat opened this issue 7 years ago • 26 comments

I have complied the "dev" version and I am doing a little testing with my my rpi3 and IPAC so I can provide a couple of Retroarch.cfg for IPAC users for your wiki.

I just wondered.......does Amiberry have a an option to display a virtual keyboard on screen?

tukicat avatar Feb 02 '18 12:02 tukicat

@tukicat Not yet, but it's planned to be added in the near future. We already have sample code for it, but we haven't had time to implement it in Amiberry yet.

midwan avatar Feb 02 '18 12:02 midwan

Great thanks for the info. A while ago I helped Chui with virtual keyboard gfx for the UAE4ALL port for the Dingoo A320, I would be happy to help if there is anything you need for Amiberry.

tukicat avatar Feb 02 '18 12:02 tukicat

@tukicat Fantastic, help in the project is always welcome! :) For now, the main focus is get things in order for the next stable release, so we can finally merge "dev" back into "master". Once that is done, we can start adding new features into "dev" again, so this will be one of them.

Let's keep this issue for future reference, and revisit it after the new version is out.

midwan avatar Feb 02 '18 12:02 midwan

No problem, happy to help when you are ready.

tukicat avatar Feb 02 '18 12:02 tukicat

ScHlAuChi also made some great keyboard images I used in UAE4All2 for Vita. If you are interested, here are the images: https://drive.google.com/open?id=1W9GCWUZl_cDjMFsUnLja5VTaNZLKPMv1

Here is an example of one of the keyboard images in use: Screenshot of UAE4All2 Vita_mod

rsn8887 avatar Feb 02 '18 20:02 rsn8887

That keyboard looks awesome! Hopefully it can be used (and with a bit of transparency so you can see what's going on). I also hope this can replace the Android one. Good job.

ghost avatar Feb 03 '18 12:02 ghost

The archive link I posted also includes a version with Shift depressed (capital letters etc) and versions for uk and German keymaps :)

rsn8887 avatar Feb 03 '18 17:02 rsn8887

we do already have a gfx in mind, but maybe it is something that could have several options (if the layout can be tabled in some way)

www.djcresswell.com/amigaonline/AmigaKeyboardPSP.png

HoraceAndTheSpider avatar Feb 03 '18 17:02 HoraceAndTheSpider

I think @rsn8887 's would be better IMHO as it's clearer and can still be seen clearly with some transparency which will be vital when selecting keys as you can see the image underneath. That cropped photo of the Amiga keyboard looks like it's at an angle, you could have at least used a straight picture :)

ghost avatar Feb 03 '18 18:02 ghost

The transparency would be added by the graphics drawing routine - should be no need to have it on the picture itself, so in theory anything could be used. It would be easy enough to have the transparency value adjustable, but these things shouldnt be judged until seen/tested anyway.

Used this one for years on another popular (portable) Amiga emulator, so no problem with the curve.
Not being rude, but I really dont think the other one looks very Amiga. It has more of an 8-bit feel.

As i said, it may be possible to have multiple options anyway.

HoraceAndTheSpider avatar Feb 03 '18 18:02 HoraceAndTheSpider

The 8bit feel of ScHlAuChi's keyboards I uploaded came from necessity: The image was made to fit into a 320*200 minimum screen resolution (the smaller the screen resolution, the faster the emulator).

rsn8887 avatar Feb 04 '18 03:02 rsn8887

Hi, I am glad that there are some options for virtual keyboards on Amiberry. As I say a while ago I did the virtual keyboard for Chui's Dingoo A320 port of UAE4ALL, I believe it may also have been used for the Pandora port.

Completely by chance I was at friends and noticed he had an Armiga and the virtual keyboard on this is the same one I produced for the A320.

The virtual keyboard has a keyboard layout and when you hover the cursor over each key it shows and enlarged version to the side. However, I could make better version using the enlarged keys.

If you did want to use this, and I am by no way saying it is the best option, then I probably just need check with Chui that it is ok, as I produced it for his use some time ago.

image

tukicat avatar Feb 06 '18 19:02 tukicat

specialkeyboard Here you can have my iAmiga Keyboard that i use for my iPad Amiga Emu. I don't need this anymore.

CypherXG avatar Mar 10 '18 07:03 CypherXG

WOAW i love it, please use this one <3

Darknior avatar Mar 10 '18 13:03 Darknior

:-) Thx

CypherXG avatar Mar 10 '18 14:03 CypherXG

All keys are square, it will easier to use :) It should be cool to use a light blue on KEY OVER and a dark blue on KEY PRESS, and possibly leave the dark blue on a key that remains active as the key SHIFT or SHIFT for example. It's just a idea already use on the AMIGA emulator port on xbox.

Darknior avatar Mar 10 '18 14:03 Darknior

@CypherXG

Lovely, I believe that should be the one ! Good work, man.

waal avatar Mar 10 '18 15:03 waal

That's what i call a nice virtual keyboard! It will brings a lot to the experience, playing our old games with a nice one like this!

Gilou9999 avatar Mar 10 '18 18:03 Gilou9999

As a first step, I've added the vbkd files from @rsn8887's UAE4All port in the repo (as well as other PSP2 related stuff, with the aim of making Amiberry work on PSVita/PSTV later).

midwan avatar Jan 11 '19 22:01 midwan

Note the files have since been updated (now with French keyboard, too): https://github.com/rsn8887/uae4all2/tree/master/src/vkbd

Keyboard images are here: https://github.com/rsn8887/uae4all2/tree/master/psp2data/data

rsn8887 avatar Oct 16 '19 17:10 rsn8887

@rsn8887 Thanks for the heads up! In a funny coincidence, I was experimenting with compiling Amiberry for the PSP2/PSVita/PSTV earlier today. :)

I had to remove the vbkd for now, since it's still using SDL1 calls and we've moved to SDL2 (I noticed that sdl2 to sdl1 header). I'll merge the latest you have and convert them to pure SDL2 at some later point, as I need to get other things fixed with it first (I got several files compiled normally, until I got to the fpp_native file - which requires fenv.h to get some definitions from there, but those could not be found in the vitasdk environment). Anyway, that's a different issue than this one...

midwan avatar Oct 16 '19 17:10 midwan

Sorry to revive an old thread but is there any progress on a virtual keyboard for Amiberry on retropie? I have this emulator on my switch (which has a virtual keyboard) and have just built a bartop arcade and this was the 1st emulator i had to have running. Most games dont require it but it would be nice to have.

If not then no problem and many thanks for this amazing app!

sh0wst0pper avatar Dec 17 '19 13:12 sh0wst0pper

any news about virtual keyboard?

davidgrohl avatar Feb 25 '22 09:02 davidgrohl

@davidgrohl Yes, coming soon... :)

midwan avatar Feb 25 '22 09:02 midwan

Just updated to version 5.1. can you confirm no virtual keyboard added yet?

davidgrohl avatar Apr 26 '22 12:04 davidgrohl

Just updated to version 5.1. can you confirm no virtual keyboard added yet?

It's not part of 5.1, as it wasn't quite ready to be included there. It still needs some work, so it will come with a future update.

midwan avatar Apr 26 '22 12:04 midwan

... any news?

Tobias2K18 avatar Dec 07 '22 18:12 Tobias2K18

I was planning on adding this myself until I see it’s already being worked on. Is there somewhere I can try this out or contribute?

erikbernsen avatar Dec 24 '22 22:12 erikbernsen

The dev branch has some work-in-progress implementation, but I haven't had time to revisit this lately. The current status is that the virtual keyboard is brought up on the screeen (with transparency) on-demand, and hidden again, but you can't select any keys to press yet. There are multiple themes for keyboards available as well, found in data/vkbd - the plan was to choose the one you prefer, or even use your own.

midwan avatar Dec 25 '22 09:12 midwan

Thanks. I finally got time to start looking into this. I downloaded the dev branch and compiled it. But didn't see that there is any functionality to bring up the virtual keyboard. The function vkdb_init and vkbd_redraw seem implemented but as far as I can see nowhere used yet. Or I'm overlooking it. As a very small hack I call vkbd_init and vkbd_redraw somewhere myself and indeed see the keyboard. It's a start to understand the code.

Screenshot

I have some questions; if this is addressed somewhere in documentation, could you please direct me to it.

  • Is there a recommended development environment?
  • When I run cmake on the dev branch without modifying CMakeLists.txt I get errors:

CMake Error at CMakeLists.txt:21 (add_executable): Cannot find source file:

src/machdep/m68k.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:21 (add_executable): No SOURCES given to target: amiberry

Indeed src/machdep/m68k.cpp doesn't exist on disk. I'm just calling cmake as

cmake .

from the Amiberry directory. Am I doing something wrong here? I'm not very familiar with cmake.

erikbernsen avatar Jan 08 '23 20:01 erikbernsen