Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug?]text input code 50(number 2) gets polled 3 times #74

Open
aurismat opened this issue Mar 19, 2021 · 0 comments
Open

[bug?]text input code 50(number 2) gets polled 3 times #74

aurismat opened this issue Mar 19, 2021 · 0 comments

Comments

@aurismat
Copy link

I'm using designer1337's csgo cheat base(propably not relevant, but mentioning it incase it is) with zgui, and when I'm using a text input field, the number 2 (above W, not the numpad 2) gets detected 3 times per keystroke. first two times it writes a 2, and a third time it writes a whitespace character or something like that.
image

Not sure if this is a reproducible issue, but I've fixed it by isolating the qwerty numbers into another else-if:

else if (i > 47 && i <= 57) {
                    if (utils::input::key_pressed(i)) {
                        for (int j = 0; j < 10; j++) {
                            if(special_characters[j].vk == i)
                                value += utils::input::key_down(VK_SHIFT) ? special_characters[j].shift : special_characters[j].regular;
                        }
                    }
                }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant