Shift click and other modifiers

Hi is there a way to use the modifiers in 007, I want to shift or control click with the mouse buttons as well as use them for key combos.

Sure, just store the integer for the key that is received in the keyPressed() method and then examine them in mouseDown().

  
  
void testApp::keyPressed(int key){  
    currentKey = key;  
}  
  
void testApp::keyReleased(int key){  
    currentKey = -1;  
}  
  
void testApp::mousePressed(int x, int y, int button){  
    if(currentKey == OF_KEY_SHIFT) {  
        // different  
    } else {  
    }  
}  
  

Perfect thanks!