diff --git a/source/src/bot/botmanager.cpp b/source/src/bot/botmanager.cpp index 3834d013..6edc4163 100644 --- a/source/src/bot/botmanager.cpp +++ b/source/src/bot/botmanager.cpp @@ -1108,22 +1108,6 @@ void kickallbots(void) COMMAND(kickallbots, ""); -void togglegrap() -{ - if (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GrabMode(0)) - { - SDL_WM_GrabInput(SDL_GRAB_ON); - conoutf("mouse input locked"); - } - else - { - SDL_WM_GrabInput(SDL_GrabMode(0)); - conoutf("mouse input released"); - } -} - -COMMAND(togglegrap, ""); - void togglebotview(char *bot) { if(!botmode()) return; diff --git a/source/src/main.cpp b/source/src/main.cpp index 365cbbe6..aa44612f 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -738,6 +738,22 @@ bool interceptkey(int sym) return false; } +void togglegrab() +{ + if (SDL_WM_GrabInput(SDL_GRAB_QUERY) == SDL_GrabMode(0)) + { + SDL_WM_GrabInput(SDL_GRAB_ON); + conoutf("mouse input locked"); + } + else + { + SDL_WM_GrabInput(SDL_GrabMode(0)); + conoutf("mouse input released"); + } +} + +COMMAND(togglegrab, ""); + static void resetmousemotion() { #ifndef WIN32