00001 // ---------------------------------------------------------------------------- 00002 // 00003 // tagGame - Example code from the book: 00004 // 00005 // Artficial Intelligence for Computer Games: An Introduction 00006 // by John David Funge 00007 // 00008 // www.ai4games.org 00009 // 00010 // Source code distributed under the Copyright (c) 2003-2007, John David Funge 00011 // Original author: John David Funge (www.jfunge.com) 00012 // 00013 // Licensed under the Academic Free License version 3.0 00014 // (for details see LICENSE.txt in this directory). 00015 // 00016 // ---------------------------------------------------------------------------- 00017 00018 #ifndef TG_KEYBOARD_SDL_H 00019 #define TG_KEYBOARD_SDL_H 00020 00021 #include "MathUtil.h" 00022 00023 namespace tagGame 00024 { 00026 class KeyboardSDL 00027 { 00028 public: 00029 KeyboardSDL(); 00030 ~KeyboardSDL(); 00031 00032 bool init(); 00033 00034 // Returns a value from -1 to 1. 00035 Real getX(); 00036 // Return a value from -1 to 1. 00037 Real getY(); 00038 protected: 00039 private: 00040 }; 00041 } 00042 00043 #endif
1.5.1