migrant a SDL3
This commit is contained in:
@@ -143,11 +143,11 @@ void Title::checkEvents()
|
||||
SDL_Event event;
|
||||
while (SDL_PollEvent(&event))
|
||||
{
|
||||
if (event.type == SDL_KEYDOWN && event.key.repeat == 0)
|
||||
if (event.type == SDL_EVENT_KEY_DOWN && event.key.repeat == 0)
|
||||
{
|
||||
bool should_reset = false;
|
||||
|
||||
switch (event.key.keysym.sym)
|
||||
switch (event.key.key)
|
||||
{
|
||||
case SDLK_1: // Redefine los botones del mando #0
|
||||
should_reset = define_buttons_->enable(0);
|
||||
@@ -204,7 +204,7 @@ void Title::checkInput()
|
||||
if ((state_ == TitleState::LOGO_FINISHED || ALLOW_TITLE_ANIMATION_SKIP) && !fade_->isEnabled())
|
||||
{
|
||||
JA_PlaySound(Resource::get()->getSound("game_start.wav"));
|
||||
JA_FadeOutMusic(1500);
|
||||
/*JA_FadeOutMusic(1500);*/
|
||||
switch (controller.player_id)
|
||||
{
|
||||
case 1:
|
||||
|
||||
Reference in New Issue
Block a user