Changeset 185


Ignore:
Timestamp:
05/19/09 14:56:40 (3 years ago)
Author:
rkuck
Message:

Corrected avango-display for new event handling in avango-osg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/avango-display/python/avango/display/_display.py

    r93 r185  
    216216    if (_display_type == "TouchscreenEmulator" or _display_type == "TwoviewTouchscreenEmulator") and subdisplay == "Touchscreen": 
    217217        device.Matrix.connect_from(_touchscreen_camera.MouseNearTransform) 
    218         device.Button1.connect_from(_touchscreen_camera.Window.value.MouseButtons_OnlyLeft) 
     218        device.Button1.connect_from(_touchscreen_event.MouseButtons_OnlyLeft) 
    219219    elif _display_type == "TwoView": 
    220220        pda_sensor = avango.daemon.nodes.DeviceSensor(DeviceService = _device_service, 
     
    397397        _composite_viewer.Views.value.append(osg_view) 
    398398 
    399         global _touchscreen_camera 
     399        global _touchscreen_camera, _touchscreen_event 
    400400        _touchscreen_camera = camera 
     401        _touchscreen_event = avango.osg.viewer.nodes.EventFields(View = osg_view)  
     402        _touchscreen_window.DragEvent.connect_from(_touchscreen_event.DragEvent)  
     403        _touchscreen_window.MoveEvent.connect_from(_touchscreen_event.MoveEvent)  
    401404 
    402405    return display_view 
Note: See TracChangeset for help on using the changeset viewer.