PA2 - Interaction: Menus, Keyboard, and Mouse


Objective: Now that we have a window open and an animation going, we will be adding interaction. You'll be taking your code from last week and adding menus, keyboard interaction, and mouse interaction.

  • Keyboard: You will need to change the spinning of your cube based upon a key being pressed. For example if you press A, the rotation reverses direction.
  • Mouse: You will be replicating what we did with the keyboard by using the mouse. If you click on the screen, the cube will reverse rotation
  • Menus: Graduate students have to add menus. (extra Credit for undergraduates) Recommended system: https://github.com/ocornut/imgui


  • Assigned: Week 2
  • Due: Week 3

  • A clone of your GitHub repository will be made at 6:00am on the due date. Don't forget to push your code by that time. This clone will be evaluated and your grade posted.