Hold down the mouse to aim. Cannon fires on release.
I added onto the framework of Ball Throwing and created a cannon simulation. Enjoy.