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.
どの (プログラムされた) ボタンが最後に押されたかを調べ、それに応じて行動する方法を知りたいです。ある種の配列が必要ですか?
クラスに int 変数を含めることができ、ボタンが押されると、その変数をボタンの ID で更新します。