]> git.tdb.fi Git - libs/gui.git/blobdiff - source/input/keys.cpp
Exception changes
[libs/gui.git] / source / input / keys.cpp
index 082e02299b9c829f4458024147d8fe3d16b0f099..508c06fb9d24b4a38bdd216b1231924d9a0f4e7b 100644 (file)
@@ -1,11 +1,11 @@
 #include <map>
+#include <stdexcept>
 #ifdef WIN32
 #include <windows.h>
 #else
 #include <X11/X.h>
 #include <X11/keysym.h>
 #endif
-#include <msp/core/except.h>
 #include "keys.h"
 
 using namespace std;
@@ -135,7 +135,7 @@ unsigned key_from_sys(unsigned code)
 unsigned key_to_sys(unsigned key)
 {
        if(key>=N_KEYS_)
-               throw InvalidParameterValue("Key out of range");
+               throw invalid_argument("key_to_sys");
        return keymap[key];
 }