Homebrew Button Press is stuck in a while loop

dumbass_in_training

New Member
OP
Newbie
Joined
Apr 24, 2019
Messages
1
Trophies
0
Age
26
XP
44
Country
United States
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) {
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';​
}​
}
any ideas?
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    K3Nv2 @ K3Nv2: Well start walking towards them +1