Skip to content

[VirtualInput] Patch vanilla getX() functions in EntityRenderer #253

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

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ScribbleTAS
Copy link
Member

These methods are used in the updateCameraAndRender method to retrieve the current pointer location of the mouse and use them in the GuiScreen#drawScreen() method to execute some behaviour. One usage in vanilla is any type of scroll bar.

Patching this will also allow me to update the pointer location of the mouse more frequently during playback which allows for a smoother mouse pointer alltogether.

Changes

  • Allow VirtualInput#getEventMouseKey, State, ScrollWheel etc to be called, when currentMouseEvent is null
  • Allow the same for currentKeyboardEvent

Closes #251

This implementation is technically not correct and will be fixed once a rewrite of the VirtualInput#VirtualMouseInput is done
@ScribbleTAS ScribbleTAS added this to the Beta1 milestone Jun 7, 2025
@ScribbleTAS ScribbleTAS self-assigned this Jun 7, 2025
@ScribbleTAS ScribbleTAS added Core Issue relates to core concepts Gui Issue relates to guis labels Jun 7, 2025
@github-project-automation github-project-automation bot moved this to Todo in TASmod Jun 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Issue relates to core concepts Gui Issue relates to guis
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

[Playback] Scroll bar in creative tab sometimes desyncs
1 participant