ninput.dll Error in Windows 10 and 11: Windows pen and touch events

Pen or touch can stop working in one Windows app while mouse input still works.
The Windows file inventory identifies ninput.dll as Microsoft Pen and Touch Input Component. Capture the actual error, file path and Windows build before making changes.
Check where the error occurs
Compare a local app that supports the same input method and check the exact device in Device Manager. Note whether a particular gesture or all touch is affected.
Repair the affected feature
Update the app or install the PC maker’s supported input driver through its official route. Keep a keyboard or mouse available.
If Windows reports corruption of a protected system file, use Microsoft’s system file repair procedure. Obtain software and drivers through Windows Update or the applicable publisher.
Verify the repair
Retry the original pen or touch operation and verify it reaches the intended view.
See the publisher’s guidance, the exact Windows file record, and the related PC Repair Atlas guide.