镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

comma: detected single frame released event - #8

Merged
maxime-desroches merged 1 commit into
masterfrom
touch_miss
Jun 22, 2025
Merged

maxime-desroches merged 1 commit into
masterfrom
touch_miss

Conversation

@maxime-desroches

Copy link
Copy Markdown

No description provided.

@maxime-desroches
maxime-desroches merged commit c075367 into master Jun 22, 2025
Comment on lines +652 to +654
if (CORE.Input.Touch.currentTouchState[i] == 1) {
released_detected = 1;
}

@sshane sshane Jun 23, 2025 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if statement is redundant right? if it happened in the same frame, current would get set to 1 from that. if it happened in previous frames (normal), current touch state would also still be 1 since we don't clear it until we get here

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah you are right. It's more for the odd case (mostly development) of the first event being an UP event

@sshane
sshane deleted the touch_miss branch June 24, 2025 23:16
andiradulescu pushed a commit to dorapilot/raylib that referenced this pull request Sep 12, 2026
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