From 762a1118c53b3b51db0fc440b303476b1bb43fc2 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 30 Aug 2011 21:01:22 +0300 Subject: [PATCH] Remove modifier constants A new more flexible system will be implemented in the near future --- source/input/keys.cpp | 18 ------------------ source/input/keys.h | 11 ----------- 2 files changed, 29 deletions(-) diff --git a/source/input/keys.cpp b/source/input/keys.cpp index 508c06f..38d9480 100644 --- a/source/input/keys.cpp +++ b/source/input/keys.cpp @@ -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