Get Keyboard Information

Keyboard information, mouse events
4.9K Downloads
Updated 16 May 2005

No License

This simple example assists you to understand how to get the keyboard information as well as mouse events.

Cite As

Fu-Sung Wang (2024). Get Keyboard Information (https://www.mathworks.com/matlabcentral/fileexchange/6605-get-keyboard-information), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Just for fun in Help Center and MATLAB Answers
Acknowledgements

Inspired: An Interactive Game Program

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

In last version I use "get(gcf, 'CurrentCharacter')" to catch the information; However, this is limited to numerals or alphabets. So a more generalized method is presented. keyinfo.dll, which can catch all the keyboard information and mouse events.