[Bf-blender-cvs] CVS commit: blender/intern/ghost/intern GHOST_EventPrinter.cpp GHOST_SystemX11.cpp GHOST_SystemX11.h
Kent Mein
mein at cs.umn.edu
Wed May 10 21:46:06 CEST 2006
sirdude (Kent Mein) 2006/05/10 21:46:06 CEST
Modified files:
blender/intern/ghost/intern GHOST_EventPrinter.cpp
GHOST_SystemX11.cpp
GHOST_SystemX11.h
Log:
This is a bit of a hack, but it looks like sun
Used F11 and friends for its special keys Stop,again etc..
So this little patch enables F11 and F12 to work as expected
following link has documentation on it:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4734408
also from /usr/include/X11/Sunkeysym.h
#define SunXK_F36 0x1005FF10 // Labeled F11
#define SunXK_F37 0x1005FF11 // Labeled F12
I also added a comment explaning why the heck its there...
What this means is XK_F11 and XK_F12 do not line up with the F11 and F12
keys on sun keyboards. So I've added special cases to correct the issue.
Doing a quick grep for XK_F shows there are some files in the
gameengine that use them when they probably shouldn't, but I'm not going to
attempt to fix them, Files that should be looked at are:
gameengine/BlenderRoutines/KX_BlenderInputDevice.h
gameengine/Converter/KX_ConvertSensors.cpp
gameengine/GameLogic/SCA_IInputDevice.h
gameengine/GamePlayer/common/unix/GPU_KeyboardDevice.cpp
gameengine/GamePlayer/common/windows/GPW_KeyboardDevice.cpp
gameengine/GamePlayer/ghost/GPG_KeyboardDevice.cpp
gameengine/Ketsji/KX_PythonInit.cpp
Kent
Revision Changes Path
1.7 +12 -7 blender/intern/ghost/intern/GHOST_EventPrinter.cpp
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/intern/ghost/intern/GHOST_EventPrinter.cpp.diff?r1=1.6&r2=1.7&cvsroot=bf-blender>
1.10 +21 -3 blender/intern/ghost/intern/GHOST_SystemX11.cpp
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/intern/ghost/intern/GHOST_SystemX11.cpp.diff?r1=1.9&r2=1.10&cvsroot=bf-blender>
1.8 +2 -2 blender/intern/ghost/intern/GHOST_SystemX11.h
<http://projects.blender.org/viewcvs/viewcvs.cgi/blender/intern/ghost/intern/GHOST_SystemX11.h.diff?r1=1.7&r2=1.8&cvsroot=bf-blender>
More information about the Bf-blender-cvs
mailing list