- [NEW] Passat a SDL3

- [NEW] Passat a de SDL_Mixer a JailAudio
- [NEW] Actualitzat a Respack2
- [NEW] Llevat el data.jrf i afegit el directori 'data' amb els arxius. Molt millor per a developar.
- [CHG] Músiques passades a OGG
- [NEW] Afegit lagueirtofile
This commit is contained in:
2025-06-29 14:18:38 +02:00
parent 7e5318c501
commit 8805799f2e
48 changed files with 6736 additions and 399 deletions

View File

@@ -2,7 +2,7 @@
#include "jgame.h"
#include <string>
const Uint8 *keystates;// = SDL_GetKeyboardState( NULL );
const bool *keystates;// = SDL_GetKeyboardState( NULL );
SDL_Event event;
Uint8 cheat[5];
bool key_pressed = false;
@@ -27,10 +27,10 @@ void JI_Update() {
if (waitTime > 0) waitTime--;
while ( SDL_PollEvent( &event ) ) {
if ( event.type == SDL_QUIT ) JG_QuitSignal();
if( event.type == SDL_KEYUP ) {
if ( event.type == SDL_EVENT_QUIT ) JG_QuitSignal();
if( event.type == SDL_EVENT_KEY_UP ) {
key_pressed = true;
JI_moveCheats( event.key.keysym.sym );
JI_moveCheats( event.key.scancode );
}
}
}