Changes between Version 7 and Version 8 of Support/Tutorials/BasicKeyboardInput

Show
Ignore:
Timestamp:
05/06/09 10:52:20 (6 years ago)
Author:
robert (IP: 217.155.192.154)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Support/Tutorials/BasicKeyboardInput

    v7 v8  
    5151To handle additional events, we would extend the first switch statement to include other events such as KEYUP, DOUBLECLICK, DRAG. To handle additional key down events we would extend the switch statement within the KEYDOWN case.[[BR]] 
    5252The return type of the event controls whether event handlers after our event handler in the event handler list get a shot at handling keyboard mouse events. If we return 'true' the event is considered handled and will not be passed on to other handlers. If we return 'false' other handlers will have the opportunity to respond to that event.[[BR]] 
    53 To 'install' our event handler we need to create an instance of it and add it to the osgProducer::Viewer's EventHandler list. Code as follows: 
     53To 'install' our event handler we need to create an instance of it and add it to the osgViewer:Viewer's EventHandler list. Code as follows: 
    5454 
    5555{{{