Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は問題に行き詰まっています: 私のソフトウェアでは、C++ を使用して Mac に接続されているジョイスティックの数を見つけるためのコードを作成する必要があります... それについてはわかりません...
サンプルコードや提案は、私にとって非常に役立ちます。
SDL ライブラリを使用できます。Mac と PC でも動作するはずです。ドキュメンテーション
ジョイスティックの数は、1 回の関数呼び出しで決定できます。
int n = SDL_NumJoysticks();