Arrow Key Demo

Version 1.0.0.0 (1.73 KB) by Frank
This function demonstrates how to use arrow keys as switches inside a loop.
344 Downloads
Updated 28 Aug 2011

View License

Rather than executing a command at every instance a key is pressed, a switch is activated inside a loop once a key is down and deactivated when the key is released. This creates, in this case, continuous smooth movement and the ability to recognise multiple key presses at once.

Cite As

Frank (2024). Arrow Key Demo (https://www.mathworks.com/matlabcentral/fileexchange/32718-arrow-key-demo), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Desktop in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0