-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Pass mouse button state into HandleMouse instead of asking win32 #6765
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't feel like these comments really warrant a "block", but I also want github to actually track the last time I reviewed these files.
Hello @zadjii-msft! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lots of parameter copying going on, but i don't totally mind.
I still want to understand..
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
blocking after discussion with Carlos about passing empty states in when we shouldn't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this have to be three booleans? can it be a button mask so we don't back ourselves into a corner for the future point where somebody asks for buttons 4/5/6/7/8 to work properly? i don't love s_getPressedButton
, because it no longer gets a pressed button, it more like "determines the most important button out of the provided button set I think"??
…om/microsoft/Terminal into dev/cazamor/vtmm/pass-button-state
So, the main problem here is
This is working the same as before though. All I did was make it take a parameter for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script takes a range of commits and generates a commit log with the git2git-excluded file changes filtered out. It also replaces GitHub issue numbers with GH-XXX so as to not confuse Git2Git or Azure DevOps. Community contributions are tagged with CC- so they can be detected later. The output looks like this: ``` Carlos Zamora (2) * Pass mouse button state into HandleMouse instead of asking win32 (GH-6765) Dustin L. Howett (6) * Disable MinimalCoreWin when OpenConsoleUniversalApp is false (GH-7203) James Holderness (1) * Add support for the "doubly underlined" graphic rendition attribute (CC-7223) ```
This script takes a range of commits and generates a commit log with the git2git-excluded file changes filtered out. It also replaces GitHub issue numbers with GH-XXX so as to not confuse Git2Git or Azure DevOps. Community contributions are tagged with CC- so they can be detected later. The output looks like this: ``` Carlos Zamora (2) * Pass mouse button state into HandleMouse instead of asking win32 (GH-6765) Dustin L. Howett (6) * Disable MinimalCoreWin when OpenConsoleUniversalApp is false (GH-7203) James Holderness (1) * Add support for the "doubly underlined" graphic rendition attribute (CC-7223) ``` Yes, the numbers are wrong. No, it doesn't really matter.
Carlos Zamora (1) * Pass mouse button state into HandleMouse instead of asking win32 (GH-6765) James Holderness (1) * Add support for the "doubly underlined" graphic rendition attribute (CC-7223) Moshe Schorr (1) * Batch RTL runs to ensure proper draw order (CC-7190) Related work items: MSFT-28385436
Summary of the Pull Request
TerminalInput::HandleMouse
now needs an extra parameter to track the state of the mouse buttons.References
#4848 - HandleMouse being moved to TermInput
PR Checklist
Validation Steps Performed
ran mc in Terminal