From 151a2ac2434f4b4c23c107d9c21e4a18dd1a3c68 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Mon, 4 Feb 2008 18:42:05 +0000 Subject: converted client:: singleton classes to namespaces --- src/client/input.h | 30 ++++++++++++------------------ 1 file changed, 12 insertions(+), 18 deletions(-) (limited to 'src/client/input.h') 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__ + -- cgit v1.2.3