Show
Ignore:
Timestamp:
01/27/11 17:23:48 (3 years ago)
Author:
robert
Message:

From Alexander Sinditskiy, "reason of this changes described in http://forum.openscenegraph.org/viewtopic.php?t=7596

and another problem is:
example osgkeyboard is not work (keys not highlight) if user have 2 keyboard layout native and english and current user layout is native

I try to explain my changes

we need something that is identify key without modifier keys and layout -> this is UnmodifedKey?

I think osg must have its own UnmodifiedKeys? table. Code must be run same on different platforms. This can de guaranteed by UnmodifiedKeys? table.

Mikhail Izmestev helped me. He implemented VirtualKey? changes in GraphicsWindowX11"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgGA/GUIEventAdapter.cpp

    r11934 r12125  
    3232    _windowHeight(1024), 
    3333    _key(0), 
     34    _unmodifiedKey(0), 
    3435    _button(0), 
    3536    _Xmin(-1.0), 
     
    5859    _windowHeight(rhs._windowHeight), 
    5960    _key(rhs._key), 
     61    _unmodifiedKey(rhs._unmodifiedKey), 
    6062    _button(rhs._button), 
    6163    _Xmin(rhs._Xmin),