diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-05 23:40:20 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-05 23:40:20 +0000 |
commit | 00a039fffea099eb53d2bbe77d3300b3d7ea768f (patch) | |
tree | 2255960b8f4b9c782502e9caa00703ffc134a6db /src/client/input.cc | |
parent | 1ed2e8eb1f1909a35f6fc8d5d6065bcac37c27ea (diff) |
make keyboard input actually work
Diffstat (limited to 'src/client/input.cc')
-rw-r--r-- | src/client/input.cc | 7 |
1 files changed, 2 insertions, 5 deletions
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) { |