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