00001 //This file is part of PhysTank. 00002 // 00003 //PhysTank is free software: you can redistribute it and/or modify 00004 //it under the terms of the GNU General Public License as published by 00005 //the Free Software Foundation, either version 3 of the License, or 00006 //(at your option) any later version. 00007 // 00008 //PhysTank is distributed in the hope that it will be useful, 00009 //but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00011 //GNU General Public License for more details. 00012 // 00013 //You should have received a copy of the GNU General Public License 00014 //along with PhysTank. If not, see <http://www.gnu.org/licenses/>. 00015 // 00016 // © Marc Johnson, 2009 00017 00018 #ifndef _INPUTLISTENER_ 00019 #define _INPUTLISTENER_ 00020 00021 #include "input/InputEvent.h" 00022 00023 class AbstractMouseListener 00024 { 00025 public: 00026 virtual void OnMouseMove(const MouseEvent& e) = 0; 00027 virtual void OnMouseButtonPressed(const MouseEvent& e) = 0; 00028 virtual void OnMouseButtonReleased(const MouseEvent& e) = 0; 00029 }; 00030 00031 class AbstractKeyListener 00032 { 00033 public: 00034 virtual void OnKeyPressed(const KeyEvent& e) = 0; 00035 virtual void OnKeyReleased(const KeyEvent& e) = 0; 00036 }; 00037 00038 00039 #endif