Pegasus theme development general
-
Hmm ok. I will brute force it then. It's not ideal but also not the end of the world since there aren't THAT many controller buttons.
-
@PlayingKarrde one sec and I'll provide a list :)
-
@fluffypillow here's the order, the number grows by one on every button after A
A = 0x100000, B, X, Y, L1, L2, L3, R1, R2, R3, SELECT, START, GUIDE,
-
@fluffypillow Oh ok that's easier than I thought. Although those aren't the results I was getting in my tests, I'll try them and see. Thanks!
-
For anyone else that wants to do this, this is the function I made:
function processButtonArt(buttonModel) { var i; for (i = 0; buttonModel.length; i++) { if (buttonModel[i].name().includes("Gamepad")) { var buttonValue = buttonModel[i].key.toString(16) return buttonValue.substring(buttonValue.length-1, buttonValue.length); } } }
Then passing in the key (ie
processButtonArt(api.keys.cancel)
) . This obviously isn't super ideal since it's currently relying on name() but it's the only way I could find to discern between a gamepad and key for now (if there's a better way I'm happy to change) but this is working for me for now. -
How come I have perfect game audio when running the default pegasus theme, but have no audio when switching to other themes?
-
@AndersHP Interesting, so you have no audio in-game if the theme is set to something else than the default theme? Does this happen also if Pegasus was launched with the other theme already set or only after you change it in the menu? Does it happen on different devices too? Does it happen with all themes?
-
Just tested.
I have tested GPiOS theme and GameOS theme, and there's no ingame sound in any of them. I tried changing theme and rebooting, and also shutting down+restarting, there's no sound no matter what I do.After reverting back to the standard grid theme, the sound is back instantly.
-
@AndersHP But do you mean no sound in the theme or no sound when playing a game?
-
@PlayingKarrde
No sound in games at all. Haven't got any video previews so haven't considered if the sound is working in the theme. -
-
@fluffypillow
Strangely enough, these two themes work fine, including backgroundmusic in the 9999999-in-1 theme.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.