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.

P#29694 2016-09-29 23:06 ( Edited 2020-01-17 20:52)

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

P#29725 2016-09-30 07:06 ( Edited 2016-09-30 11:06)

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.

P#29746 2016-09-30 16:29 ( Edited 2016-09-30 20:29)

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

P#29751 2016-09-30 17:08 ( Edited 2016-09-30 21:08)

@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)

P#29757 2016-09-30 18:24 ( Edited 2016-09-30 22:24)

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.

P#29789 2016-10-01 07:55 ( Edited 2016-10-01 11:58)

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

P#29819 2016-10-02 01:12 ( Edited 2016-10-02 05:12)

@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

P#30203 2016-10-07 11:13 ( Edited 2016-10-07 15:14)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-19 04:35:23 | 0.038s | Q:20