HebiRobotics/Matlab​Input

Library for getting keyboard and joystick input into MATLAB
424 descargas
Actualizado 20 ene 2023

MatlabInput allows MATLAB users to get input from keyboards and joysticks in a non-blocking manner. It contains two classes: HebiJoystick, and HebiKeyboard. HebiJoystick is a drop-in replacement for vrjoystick for users who don't have access to the Simulink 3D Animation toolbox. HebiKeyboard provides similar functionality, but for keyboard inputs.
Example:

% Add library
addpath('hebi');

% Display all currently pressed keys whenever shift is up
kb = HebiKeyboard();
while true
state = read(kb);
down = find(state.keys('a':'z')) + 'a';
if ~state.SHIFT
disp(char(down));
end
pause(0.01);
end

The library was tested on Windows, Linux, and OSX on MATLAB 2015b, 2016a, and 2016b. However, it should run on any version >= 2013b. It makes use of the Java library (JInput) and does not support code generation).

Readme: https://github.com/HebiRobotics/MatlabInput
Download: https://github.com/HebiRobotics/MatlabInput/releases

Citar como

Florian Enner (2024). HebiRobotics/MatlabInput (https://github.com/HebiRobotics/MatlabInput), GitHub. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2015a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!

src/main/resources/matlab

src/main/resources/simulink

src/main/resources/simulink

No se pueden descargar versiones que utilicen la rama predeterminada de GitHub

Versión Publicado Notas de la versión
1.2.0.0

description fix

Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.
Para consultar o notificar algún problema sobre este complemento de GitHub, visite el repositorio de GitHub.