Skip to content

Don't call IsControlJustPressed if isClose is false#39

Merged
FjamZoo merged 1 commit intodarktrovx:mainfrom
r3ps4J:main
Feb 5, 2025
Merged

Don't call IsControlJustPressed if isClose is false#39
FjamZoo merged 1 commit intodarktrovx:mainfrom
r3ps4J:main

Conversation

@r3ps4J
Copy link
Contributor

@r3ps4J r3ps4J commented Feb 2, 2025

This changes IsControlJustPressed(0, 38) and isClose to isClose and IsControlJustPressed(0, 38), which should improve performance a bit. Might not be noticable, but it does prevent calling IsControlJustPressed if isClose is false.

@FjamZoo FjamZoo merged commit 3beb503 into darktrovx:main Feb 5, 2025
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants