]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.cpp
Remove modifier constants
[libs/gui.git] / source / input / keys.cpp
index 508c06fb9d24b4a38bdd216b1231924d9a0f4e7b..38d94807b03fcc0d982f641a433f8aa98e4ae513 100644 (file)
@@ -97,15 +97,6 @@ unsigned keymap[Msp::Input::N_KEYS_]=
 #endif
 };
 
-unsigned modmap[Msp::Input::N_MODS_]=
-{
-#ifndef WIN32
-       ShiftMask, ControlMask, Mod1Mask, Mod4Mask
-#else
-       1, 2, 4, 8
-#endif
-};
-
 }
 
 namespace Msp {
@@ -139,14 +130,5 @@ unsigned key_to_sys(unsigned key)
        return keymap[key];
 }
 
-unsigned mod_from_sys(unsigned mod)
-{
-       unsigned result = 0;
-       for(unsigned i=0; i<N_MODS_; ++i)
-               if(mod&modmap[i])
-                       result |= 1<<i;
-       return result;
-}
-
 } // namespace Input
 } // namespace Msp