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

Redundant isKeyPressed property #7444

Open
bensgilbert opened this issue Dec 22, 2024 · 0 comments
Open

Redundant isKeyPressed property #7444

bensgilbert opened this issue Dec 22, 2024 · 0 comments

Comments

@bensgilbert
Copy link
Contributor

Topic

Whilst looking through the codebase's event handling logic I found this property that doesn't seem to be used or documented. Here is the Github search result:
image
As you can see from the image above, it's only referenced four times in the codebase, and only once in a file that isn't for testing.
I may be mistaken but it doesn't actually seem to be used for anything as it's replaced by keyIsDown which is documented.
This brings up the question, is there any point keeping track of this variable and should it be removed (I think it should as there's no point keeping it).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant