Hey guys, I'm trying to make a calculator but I want the input to wait until the user is ready to use it. There is a button press wrapped inside of a while loop but it doesn't take the input for some reason.
while (keyInp) {
any ideas?
while (keyInp) {
if (kDown & KEY_B) {
}swkbdInit(&swkbd, SWKBD_TYPE_NUMPAD, 1, 8);
swkbdSetValidation(&swkbd, SWKBD_ANYTHING, 0, 0);
swkbdSetFeatures(&swkbd, SWKBD_FIXED_WIDTH);
swkbdSetNumpadKeys(&swkbd, L'ツ', L'益');
button = swkbdInputText(&swkbd, mybuf, sizeof(mybuf));
keyInp = false;
a = mybuf[0] - '0';
}swkbdSetValidation(&swkbd, SWKBD_ANYTHING, 0, 0);
swkbdSetFeatures(&swkbd, SWKBD_FIXED_WIDTH);
swkbdSetNumpadKeys(&swkbd, L'ツ', L'益');
button = swkbdInputText(&swkbd, mybuf, sizeof(mybuf));
keyInp = false;
a = mybuf[0] - '0';
any ideas?