please help with trackball view

This is a working piece of code that I adapted from a text book to my specific case:
</font><blockquote><font size=“1” face=“Verdana, Arial”>code:</font><hr /><pre style=“font-size:x-small; font-family: monospace;”> else if(mode == RIGHT_DRAG) {
if(Fl::event_key(FL_Shift_L)

Sorry something went through in the submission process… Here we go again:

This is a working piece of code that I adapted from a text book to my specific case:
</font><blockquote><font size=“1” face=“Verdana, Arial”>code:</font><hr /><pre style=“font-size:x-small; font-family: monospace;”> else if(mode == RIGHT_DRAG) {
if(Fl::event_key(FL_Shift_L)