diff options
author | Stijn Buys <ingar@osirion.org> | 2008-02-04 18:42:05 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-02-04 18:42:05 +0000 |
commit | 151a2ac2434f4b4c23c107d9c21e4a18dd1a3c68 (patch) | |
tree | 18154b52b44327de28d82ff187f25c8369ddc5d9 /src/client/input.h | |
parent | 09fb43f3d36847977ac202c10c5a11f34af03a43 (diff) |
converted client:: singleton classes to namespaces
Diffstat (limited to 'src/client/input.h')
-rw-r--r-- | src/client/input.h | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/client/input.h b/src/client/input.h index 6067522..2fc3580 100644 --- a/src/client/input.h +++ b/src/client/input.h @@ -1,6 +1,6 @@ /* input.h - This file is part of the Osirion project and is distributed under - the terms and conditions of the GNU General Public License version 2 + This file is part of the Osirion project and is distributed under + the terms and conditions of the GNU General Public License version 2 */ #ifndef __INCLUDED_INPUT_H__ @@ -10,24 +10,18 @@ namespace client { -class Input -{ -public: - /// initialize the input subsystem - void init(); - /// shutdown the input subsystem - void shutdown(); +namespace input { - /// handle one frame of input events - void frame(); +/// initialize the input subsystem +extern void init(); +/// shutdown the input subsystem +extern void shutdown(); +/// handle one frame of input events +extern void frame(float seconds); -protected: - /// handle key release events - void handle_keyreleased(SDL_keysym* keysym); - /// handle key pressed events - void handle_keypressed(SDL_keysym* keysym); -}; +} // namespace input -} // namespace Client +} // namespace client #endif // __INCLUDED_INPUT_H__ + |