Log In  


I just discovered PICO-8 and wanted to try some of the many great carts. But nearly all of them are unplayable because most games use <X> and <Z> as buttons. But X and Z are so far away on my keyboard layout that makes no sense. Please fix that, that is really bad usebility.

P#21167 2016-05-23 15:15 ( Edited 2016-09-05 12:21)

For most of us Z and X are right next to each other. What kind of keyboard are you using?

P#21169 2016-05-23 15:29 ( Edited 2016-05-23 19:29)

probably AZERTY

P#21170 2016-05-23 15:33 ( Edited 2016-05-23 19:33)

For most of us Z and X are right next to each other. What kind of keyboard are you using?

P#21171 2016-05-23 15:34 ( Edited 2016-05-23 19:34)

Z and X are the names for US keyboard layout, but for other layouts they should still be at the bottom-left of the keyboard. e.g. QX

You can also use C/V and N/M (or, again, the keys in the same position as US layout) if that helps.

For the Desktop versions, you can also choose any key mapping with KEYCONFIG.

P#21172 2016-05-23 15:35 ( Edited 2016-05-23 19:36)

Yet more reasons people should refer to ⓧ and ⓞ rather than the letter keys they're assigned to by default for them...

P#21179 2016-05-23 16:19 ( Edited 2016-05-23 20:19)

Except with X and O, I can apply the same argument with a QWERTY keyboard, they're on the opposite ends of this keyboard

P#21187 2016-05-23 17:08 ( Edited 2016-05-23 21:08)

In my case ( french azerty keyboard ) the default keys are w and x ( -> bottom-left ) on desktop version but it goes back to z and x on the web player.

P#21190 2016-05-23 17:14 ( Edited 2016-05-23 21:14)

Ahh, because Google Chrome is blocking Mozilla's attempts to update the keyboard input standards to have scancodes and keycodes instead of a bunch of totally arbitrary numbers which may or may not refer to specific keys depending on the operating system and browser returning them, right? And because of that, everything that wants maximum web compatibility (such as emscripten, presumably) still uses the old system, and there's probably nothing we can do about it.

For this specific case... I'm assuming zep would have to manually write some JavaScript to take input for the game using scancodes if they're available and falling back to the old "which" key input if not? And even then that'd only fix it for Firefox because Chrome always lags behind in standards. Web development is a right pain in the arse that way. It wasn't until very recently that Chrome accepted a CSS rule to scale images and web canvases up with pixelation rather than blurry linear scaling.

P#21194 2016-05-23 18:37 ( Edited 2016-05-23 22:40)

That's finally fixed? Now I don't need to tell people to download firefox to read Kid Radd!

And I said ⓧ and ⓞ, the buttons. Not X and O.

P#21209 2016-05-23 21:42 ( Edited 2016-05-24 02:27)

Yep. Exactly. As long as the archive you use has the correct CSS rules for it, anyway. It would've been useful for making pixel canvas games before WebGL was a thing, too...

P#21224 2016-05-24 03:31 ( Edited 2016-05-24 07:31)

keiya: ⓧ and ⓞ will still cause confusion among new players I think, as it's easy to misinterpret those as keys rather than as button symbols. And the cognitive dissonance of having ⓧ mapped to Z when X is mapped to ⓞ is pretty awkward.

① and ② might be clearer, because people may be familiar with games referring to joystick buttons 1 and 2, and are less likely to assume that those refer to the actual 1 and 2 keys.

Either way, the web player needs some documentation outside the frame about which keys are used for which buttons. Otherwise games that have to document their controls will just continue to use e.g. "press Z/X to start" even on platforms where there are no keys at all.

P#21229 2016-05-24 05:23 ( Edited 2016-05-24 11:24)

How about having a function BTNN(key) in the next version of the API which would return the name of the given key based on the keyboard mapping?

P#21232 2016-05-24 05:50 ( Edited 2016-05-24 09:50)

That wouldn't work given the consideration that the default mapping is both z and c for ① and x and v for ②

Which itself is also causing the problem of some games expecting you to use z and x and others are expecting you to use x and c to reverse the button order entirely. ...

P#21251 2016-05-24 11:44 ( Edited 2016-05-24 15:44)

Hmm ... Perhaps allow reconfiguration of A and B buttons by pressing ENTER Online.


It can be done by anyone uploading a game with a bit of extra code, but in time it could be intrinsic to the OS.

P#27944 2016-09-02 21:20 ( Edited 2016-09-03 01:20)

Pretty sure "O button" = Z, and "X button" = X, though. Like the first and second keys. That's been my experience, at least.

Button 4/5 respectively.

P#28034 2016-09-05 08:21 ( Edited 2016-09-05 12:41)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-02-06 08:43:30 | 0.017s | Q:34