How to emulate joystick input to the computer?

30 ビュー (過去 30 日間)
Cristina
Cristina 2019 年 9 月 5 日
Hi All
I have a gaming environment on the computer that reads inputs from a joystick when I plug the joystick into the computer. I would like to use MATLAB to emulate having a joystick plugged into the computer, and pressing certain joystick buttons. I would like a solution that is only on the MATLAB side (i.e. I do not want to provide different inputs to the gaming environment - I would like to write a MATLAB command that acts like the joystick). I know it probably involves writing to specific ports - but I do not know where to start.
Thanks for the help!
Cristina

回答 (1 件)

Shresth Sharma
Shresth Sharma 2020 年 3 月 27 日
Hi,
It is my understanding that you are looking for a place to start understanding the joystick control as input for MATLAB. For the initial part as a more gaming controller-based input you can go through the following video link.
To have a better understanding on the joystick block you can also go through the following documentation links:
  1 件のコメント
Venkata Sai Sampath Pavan Kumar Rachumallu
編集済み: Venkata Sai Sampath Pavan Kumar Rachumallu 2020 年 12 月 24 日
Hi ,is joystick input support only available with simulink? Do we need to do polling if we have to use it outside simulink or is there any better way?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeCard games についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by