Drop platform support for Solaris & AIX
[blender.git] / intern / ghost / intern / GHOST_SystemX11.cpp
index 30cfac08153d7db1c2fe4c7b577e7fd0e456491a..8fff565338f8066555ad4a6b8ff39ecab61037cd 100644 (file)
@@ -1601,26 +1601,6 @@ convertXKey(KeySym key)
        }
        else if ((key >= XK_F1) && (key <= XK_F24)) {
                type = GHOST_TKey(key - XK_F1 + int(GHOST_kKeyF1));
-#if defined(__sun) || defined(__sun__) 
-               /* 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
-                *
-                *      mein@cs.umn.edu
-                */
-               
-       }
-       else if (key == 268828432) {
-               type = GHOST_kKeyF11;
-       }
-       else if (key == 268828433) {
-               type = GHOST_kKeyF12;
-#endif
        }
        else {
                switch (key) {
@@ -1714,19 +1694,6 @@ convertXKey(KeySym key)
                        GXMAP(type, XF86XK_AudioForward, GHOST_kKeyMediaLast);
 #endif
 #endif
-
-                       /* some extra sun cruft (NICE KEYBOARD!) */
-#ifdef __sun__
-                       GXMAP(type, 0xffde,          GHOST_kKeyNumpad1);
-                       GXMAP(type, 0xffe0,          GHOST_kKeyNumpad3);
-                       GXMAP(type, 0xffdc,          GHOST_kKeyNumpad5);
-                       GXMAP(type, 0xffd8,          GHOST_kKeyNumpad7);
-                       GXMAP(type, 0xffda,          GHOST_kKeyNumpad9);
-
-                       GXMAP(type, 0xffd6,          GHOST_kKeyNumpadSlash);
-                       GXMAP(type, 0xffd7,          GHOST_kKeyNumpadAsterisk);
-#endif
-
                        default:
                                type = GHOST_kKeyUnknown;
                                break;