Skip to content

MdeModulePkg: Update to support mouse z-axis in ConSplitterDxe #11254

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

YangGangUEFI
Copy link
Contributor

@YangGangUEFI YangGangUEFI commented Jul 4, 2025

Description

If AbsoluteMaxZ/ResolutionZ is 0, it means z-axis is not supported. When getting AbsolutePointer/SimplePointer Protocol Interface and mouse state from gST->ConsoleInHandle, AbsoluteMaxZ/ResolutionZ is checked, so AbsState.CurrentZ/SimpleState.RelativeMovementZ is always 0.

Assign a valid value to AbsoluteMaxZ/ResolutionZ to indicate z-axis support.

  • Breaking change?
    • Breaking change - Does this PR cause a break in build or boot behavior?
    • Examples: Does it add a new library class or move a module to a different repo.
  • Impacts security?
    • Security - Does this PR have a direct security impact?
    • Examples: Crypto algorithm change or buffer overflow fix.
  • Includes tests?
    • Tests - Does this PR include any explicit test code?
    • Examples: Unit tests or integration tests.

How This Was Tested

Get gEfiAbsolutePointerProtocolGuid or gEfiSimplePointerProtocolGuid protocol from gST->ConsoleInHandle,
then use GetState to retrieves the current state of a pointer device, and print AbsState.CurrentZ/SimpleState.RelativeMovementZ.

Integration Instructions

N/A

If `AbsoluteMaxZ`/`ResolutionZ` is 0, it means z-axis is not supported.
When getting AbsolutePointer/SimplePointer Protocol Interface and mouse
state from `gST->ConsoleInHandle`, `AbsoluteMaxZ`/`ResolutionZ` is checked,
so AbsState.CurrentZ/SimpleState.RelativeMovementZ is always 0.

Assign a valid value to `AbsoluteMaxZ`/`ResolutionZ` to indicate
z-axis support.

Signed-off-by: Yang Gang <[email protected]>
@YangGangUEFI YangGangUEFI marked this pull request as ready for review July 7, 2025 02:23
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.

1 participant