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.
glutMouseFunc内でキーが押されているかどうかを検出する方法はありますか?
はい。現在押されているキーのグローバルにアクセス可能なリストを保存します。次に、MouseFuncでそのリストを読みます。
マウスコールバックはすでにコントロールキーの状態(shift / alt / ctrl)を取得しているため、通常はこれを行う必要はありません。