Fixing default didPress(...) key handling

This commit is contained in:
Rodrigo Alfonso
2025-02-04 05:51:28 -03:00
parent 1124981c81
commit b7295b2443
5 changed files with 14 additions and 12 deletions

View File

@@ -49,7 +49,7 @@ int main() {
;
}
bool left = false, right = false, a = false, b = false, l = false;
bool left = true, right = true, a = true, b = true, l = true;
while (true) {
// Get selected ROM name

View File

@@ -186,8 +186,8 @@ void test(bool withSync) {
u16 expectedCounter = 0;
bool error = false;
u16 receivedRemoteCounter = 0;
bool increasingInterval = false;
bool decreasingInterval = false;
bool increasingInterval = true;
bool decreasingInterval = true;
Common::log("Waiting for data...");

View File

@@ -4,7 +4,7 @@
#include "../../_lib/common.h"
#include "../../_lib/interrupt.h"
bool a = false, b = false, l = false;
bool a = true, b = true, l = true;
// (1) Create a LinkCube instance
LinkCube* linkCube = new LinkCube();

View File

@@ -24,9 +24,9 @@ std::string outgoingData = "";
u32 counter = 0;
u32 frameCounter = 0;
bool left = false, right = false, up = false, down = false;
bool a = false, b = false, l = false, r = false;
bool start = false, select = false;
bool left = true, right = true, up = true, down = true;
bool a = true, b = true, l = true, r = true;
bool start = true, select = true;
std::string selectedNumber = "";
std::string selectedPassword = "";
std::string selectedDomain = "";

View File

@@ -89,9 +89,9 @@ start:
linkWireless->activate();
}
bool activating = false;
bool serving = false;
bool connecting = false;
bool activating = true;
bool serving = true;
bool connecting = true;
while (true) {
u16 keys = ~REG_KEYS & KEY_ANY;
@@ -274,7 +274,9 @@ void messageLoop() {
bool sending = false;
bool altView = false;
bool switching = false;
bool switching = true;
bool moreKeys = true;
#ifndef LINK_WIRELESS_PROFILING_ENABLED
u32 lostPackets = 0;
@@ -493,7 +495,7 @@ void messageLoop() {
}
// RIGHT = More options
if (keys & KEY_RIGHT) {
if (Common::didPress(KEY_RIGHT, moreKeys)) {
Common::log(
"- Hold LEFT = Send x10\n- Hold DOWN = Test lag\n- L = Decrease "
"interval\n- R = Increase interval\n- DOWN = Close dialogs\n- "