- [NEW] Sempre es pot navegar pels menus amb cursors, RETURN i ESCAPE
- [NEW] El gamepad es configura amb la info del gamescontrollerdb.txt per defecte - [NEW] El botó de START en el gamepad funciona com el ESCAPE del teclat - [FIX] La música ingame continuava estant mal - [FIX] Si la música està desactivada que no sone la del logo
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
#include "jutil.h"
|
||||
#include "jaudio.h"
|
||||
#include "config.h"
|
||||
#include "controller.h"
|
||||
|
||||
namespace modules
|
||||
{
|
||||
namespace game
|
||||
@@ -292,7 +294,7 @@ namespace modules
|
||||
|
||||
if (actor::hero::isDead()) return GAME_DEAD;
|
||||
|
||||
if (input::keyPressed(SDL_SCANCODE_ESCAPE))
|
||||
if (controller::pressed(KEY_MENU))
|
||||
{
|
||||
if (console::isEnabled()) {
|
||||
console::toggle();
|
||||
|
||||
Reference in New Issue
Block a user