How to make MATLAB detect keyboard stroke?
Mostrar comentarios más antiguos
Hi,
I want to write a code which detect left and right arrow stroke in keyboard.
I tried to use below kind of code but it shows crosshair and also interrupts the working of other line. (Making crosshair invisible is somewhat important in this case)
[~,~,button]=ginput(1);
switch button
case 28 %left
case 29 %right
end
Is there any better way to do it? Thanks!
Respuesta aceptada
Más respuestas (2)
Amir Azadeh Ranjbar
el 19 de Oct. de 2023
0 votos
go to this link and its work
Categorías
Más información sobre Display Image en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!