Show
Ignore:
Timestamp:
01/27/11 17:23:48 (4 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/include/osgViewer/api/X11/GraphicsWindowX11

    r12079 r12125  
    164164 
    165165        void transformMouseXY(float& x, float& y); 
    166         void adaptKey(XKeyEvent& keyevent, int& keySymbol); 
     166        void adaptKey(XKeyEvent& keyevent, int& keySymbol, int& unmodifiedKeySymbol); 
    167167        void forceKey(int key, double time, bool state); 
    168168        void rescanModifierMapping();