in reply to Re^3: Unable to capture mouse events in Win32::Console
in thread Unable to capture mouse events in Win32::Console
Hi vr, This is really excellent. I made the changes that you recommended and now I am capturing mouse events in addition to keyboard events. I have one remaining question. I recall that there was a way to specify that mouse movements would not be captured, but everything else that was mouse-related, in particular mouse clicks, would be captured. I checked https://docs.microsoft.com/en-us/windows/console/setconsolemode but could not find it. I know that programmatically I can filter out mouse movement events, but then there would be a huge amount of CPU time spent in doing so. Is there a value that can be "or"ed or "and"ed to the values already being sent to the mode () method that prevents mouse movement events from being detected? Thanks again for your solution.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: Unable to capture mouse events in Win32::Console
by vr (Curate) on Apr 26, 2022 at 19:05 UTC | |
by fireblood (Scribe) on Apr 26, 2022 at 20:15 UTC | |
by etj (Deacon) on Apr 27, 2022 at 16:18 UTC | |
by vr (Curate) on Apr 27, 2022 at 18:44 UTC | |
by Anonymous Monk on Apr 28, 2022 at 02:15 UTC |
In Section
Seekers of Perl Wisdom