Function like kbhit(), but for deployed console applications.
显示 更早的评论
I'd like to use the kbhit() (See link below) function in a deployed console application so that I can detect a user keypress while the application is running in a loop.
kbhit uses the line:
mde = com.mathworks.mde.desk.MLDesktop.getInstance;
but that doesn't exist in the deployed console environment. Anyone know the equivalent object or another alternative?
回答(1 个)
Walter Roberson
2020-11-16
0 个投票
https://www.mathworks.com/matlabcentral/answers/143088-real-time-detect-keypress#answer_285124 contains a discussion of possibilities that might perhaps be usable.
类别
在 帮助中心 和 File Exchange 中查找有关 MATLAB Compiler 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!