Controls are working now

This commit is contained in:
Dante Leoncini 2026-05-03 00:49:10 -03:00
parent 6d7e068d03
commit d4d2f375d2

View file

@ -39,8 +39,8 @@
#include "Timer.h"
//debug
#include <e32cons.h>
LOCAL_D CConsoleBase* console;
/*#include <e32cons.h>
LOCAL_D CConsoleBase* console;*/
psGlobalType psGlobal;
@ -410,8 +410,8 @@ public:
}
void ConstructL(const TRect& aRect, CAknAppUi* aAppUi) {
console = Console::NewL(_L("RE3 Debug"), TSize(KConsFullScreen, KConsFullScreen));
console->Printf(_L("Console iniciada\n"));
/*console = Console::NewL(_L("RE3 Debug"), TSize(KConsFullScreen, KConsFullScreen));
console->Printf(_L("Console iniciada\n"));*/
iAppUi = aAppUi;
CreateWindowL();
@ -629,9 +629,9 @@ public:
bool pressed = (aType == EEventKeyDown);
TUint scan = aKeyEvent.iScanCode;
if(console){
/*if(console){
console->Printf(_L("Scan: %d Type: %d Pressed: %d\n"), scan, aType, pressed);
}
}*/
// Variables estáticas para permitir movimiento en diagonal sin que se anulen entre sí
static bool keyUp = false, keyDown = false, keyLeft = false, keyRight = false;