Log In  

  1. When I view the cart category in this website and click the thumbnail of a cart, it opens up with a virtual keyboard layout. Could it be possible to add similar virtual keyboard to html-exported carts as well? Because I usually export my projects to html so it would be very handy if I could test them on my mobile browser as well while on the road.

  2. Web player's virtual control layout should have its CSS set up so that it would prevent the user from accidentally "paint selecting" or dragging the ui elements of this control layout. It could be done easily by adding "user-select: none" to css and "draggable=false" to the images.


P#45499 2017-10-27 08:40 ( Edited 2017-10-28 17:09)


While I agree that it would be cool to have this built-in, in the meantime, you should check out this awesome project that does what you are looking for:


He goes above and beyond what you are asking for. His example shows context sensitive buttons (ie only showing left and right for a platformer, then switching to a dpad in a map segment) as well as adding in analog controls using the gpio pins.

Headjump, if you see this, you are doing God's work.


P#45501 2017-10-27 08:51 ( Edited 2017-10-27 12:51)

Woahs...god's work indeed. Thanks for the link Pablo.

I just tried that demo out on my iPhone 6 and it works far better than I anticipated. This changes some things...I'm going to have to get much more familiar with how Pico8 interacts with the JS.

P#45515 2017-10-27 13:03 ( Edited 2017-10-27 17:03)

If this works well for my severely underpowered android tablet, You'll have won another fan. I'll let you know later. X3

P#45517 2017-10-27 13:16 ( Edited 2017-10-27 17:16)

@paloblancogames Dude, thanks! That is exactly what I am looking for. Gotta try it right now. Thanks for sharing! +++

P#45519 2017-10-27 13:38 ( Edited 2017-10-27 17:38)

@paloblancogames Hey I just tried the template, and while it does show the buttons on my phone's browser screen, they do not seem to work. Using iPhone 6 with Google Chrome. Do I need to make any changes to the html regarding the button commands? I read the readme-file and from that I understood that there should not be any other configurations needed other than renaming the title etc?

P#45521 2017-10-27 15:42 ( Edited 2017-10-27 19:42)

I tried mine on iPhone6 on Safari and the demo worked just fine.

You do have to put the html_buttonset() function into your game for the buttons to work...you can't just drop in your game JS and have it work (at least I didn't).

Right now I'm trying to get my space invader game working and it's pretty decent but sound isn't working...but that has nothing to do with the template from what I can tell.

P#45527 2017-10-27 21:47 ( Edited 2017-10-28 01:47)

@morningtoast Thanks for clarification. I somehow though one would need to use the buttonset function only if the default key config needed to be changed, but that wasn't the case. I used the function and now everything is working, well except the sounds.

P#45544 2017-10-28 12:39 ( Edited 2017-10-28 16:39)

hey I did this myself a month or two ago.


there it is if you want another option :D

P#45547 2017-10-28 13:09 ( Edited 2017-10-28 17:09)

[Please log in to post a comment]