diff options
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__ + |