From 00a039fffea099eb53d2bbe77d3300b3d7ea768f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 5 Feb 2008 23:40:20 +0000 Subject: make keyboard input actually work --- src/client/input.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/client/input.cc') diff --git a/src/client/input.cc b/src/client/input.cc index b7c02af..ccfd998 100644 --- a/src/client/input.cc +++ b/src/client/input.cc @@ -9,6 +9,7 @@ #include "client/input.h" #include "client/console.h" #include "client/camera.h" +#include "client/keyboard.h" #include "SDL/SDL.h" @@ -21,10 +22,7 @@ namespace input void init() { con_print << "Initializing input..." << std::endl; - - //condebug << "SDL_DEFAULT_REPEAT_DELAY " << SDL_DEFAULT_REPEAT_DELAY << std::endl; - SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL); - //SDL_EnableKeyRepeat(10, SDL_DEFAULT_REPEAT_INTERVAL); + client::setkeyboardmode(console::visible()); } void shutdown() @@ -32,7 +30,6 @@ void shutdown() con_print << "Shutting down input..." << std::endl; } - // handle pressed keys for the game world void keypressed(const SDL_keysym &keysym) { -- cgit v1.2.3