Log In  


I did a small patch to SDL2 that should fix using the custom glyphs in 0.1.9, so until 0.1.9b is released this should suffice

This also fixes getting a ding/beep sound when trying to use the custom glyphs, the version of SDL2 that ships with PICO-8 is too old

Changed:

--- a/src/video/windows/SDL_windowsevents.c	2016-01-02 13:56:31 -0700
+++ b/src/video/windows/SDL_windowsevents.c	2016-09-29 21:02:54 -0600
@@ -619,6 +619,7 @@
             break;
         }
         /* otherwise fall through to below */
+    case WM_SYSCHAR:
     case WM_CHAR:
         {
             char text[5];

The change here involves adding in WM_SYSCHAR support since, normally pressing a key produces a WM_CHAR event, but Alt + Key generates WM_SYSCHAR which SDL2 doesn't handle.


https://gamax92.keybase.pub/CustomSDL2.zip

No idea if this change adds in any issues but I've not been able to see any.

3


funny, the other day I was thinking about doing this for d-pad support.
there's a whole bunch of things to hack there.


audio dosent seem to work for me but the glyphs work fine
audio was working fine earlier when i had just applied the patch though, and i can still hear other audio.


Interesting, I'm still getting audio here but I'll look and make sure any SDL2 audio drivers aren't failing to be included.

On Win 10 here but also works in my Win 7 VM


@gamax92 Same here with Windows 10, though might just be an audio driver issue since it was working fine until I had made a music call in a game. (specifically music(1), don't know why it'd break it though)


Ok, this is weird. I put back the original SDL2 (had backed it up) and still no sound.
Gonna try reinstalling.

EDIT: No sound still.. I must've messed up some sort of SDL sound driver when making a music() call somehow.


hmm... did you try turning your computer off then back on?


@Fayne Actually, It was an issue with config.txt having volume set at 0 XD
Anyway, I'm using PICO-8 0.1.9b so this dll is not needed anymore because it's shift+a...z now



[Please log in to post a comment]