Skip to content

Conversation

@Clap2rap
Copy link
Contributor

  • Add input event emission for SDL games using PeekMessage/GetMessage
  • Filter input messages to block them from reaching the game
  • Spoof cursor position to prevent games from tracking mouse movement

This PR fixes Don't Starve Together issue mentioned on #136.
Feel free to give advice or modify as you wish!

- Add input event emission for SDL games using PeekMessage/GetMessage
- Filter input messages to block them from reaching the game
- Spoof cursor position to prevent games from tracking mouse movement
- Add mousewheel scroll event support (vertical and horizontal)
- Refactor input handling with helper functions for better maintainability
- Optimize lock acquisitions and remove redundant code

This fixes blockInput issues with games like Don't Starve Together
that use SDL and poll messages directly instead of using DispatchMessage.
@storycraft
Copy link
Owner

rustfmt, clippy 실행 부탁드립니다

@storycraft
Copy link
Owner

storycraft commented Nov 27, 2025

기여 감사합니다. 다른일로 바빠서 리뷰가 좀 늦어지고 있는데 양해 부탁드려요

@storycraft
Copy link
Owner

코드 중복되는 영역 삭제하고 일부 키 메세지가 제대로 처리되지 않는 부분 수정했습니다. 기여 감사합니다.

@storycraft storycraft merged commit 0fd7b5c into storycraft:main Nov 29, 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