Joystick MEX file

バージョン 1.1.0.0 (2.28 KB) 作成者: Peter Corke
Portable joystick MEX file using SDL
ダウンロード: 886
更新 2013/4/3

ライセンスの表示

A MEX function that returns joystick axes and buttons. It should be reasonably portable since it's based on SDL which runs on Mac, Linux, Win.

>> [j,b] = joystick

j =

0 0 -0.0039 0.0039

b =

0 0 0 0 0 0 0 0 0 0 0 0

Could be wrapped into an S-function.

Simulink comes with similar functionality if you have the 3D Animation Toolbox.

Tested on R2012b MacOS 10.8.2 (ML) with SDL 1.2.15.

引用

Peter Corke (2026). Joystick MEX file (https://jp.mathworks.com/matlabcentral/fileexchange/41041-joystick-mex-file), MATLAB Central File Exchange. 取得日: .

MATLAB リリースの互換性
作成: R2012b
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
タグ タグを追加
バージョン 公開済み リリース ノート
1.1.0.0

Fixed bug described by Christie, also includes release of dynamically allocated memory.

The // comment problem can be fixed by specifying the C99 compiler, but is probably platform/compiler specific.

1.0.0.0