X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcontrol%2Fcodecontroller.cpp;h=88116a35062dd99b989a401f0d40d05db1c089cc;hb=d097f456b8ab4f42058545bdd4f8f676d151e974;hp=cdee2cff36db41c9d0cb14ea9bfd016c4bf4dd44;hpb=5b7f9214cb929399f1a855ef5807018a9447d510;p=supertux.git diff --git a/src/control/codecontroller.cpp b/src/control/codecontroller.cpp index cdee2cff3..88116a350 100644 --- a/src/control/codecontroller.cpp +++ b/src/control/codecontroller.cpp @@ -1,26 +1,20 @@ -// $Id$ -// // SuperTux -// Copyright (C) 2005 Matthias Braun +// Copyright (C) 2006 Matthias Braun // -// This program is free software; you can redistribute it and/or -// modify it under the terms of the GNU General Public License -// as published by the Free Software Foundation; either version 2 -// of the License, or (at your option) any later version. +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. -// +// // You should have received a copy of the GNU General Public License -// along with this program; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -// 02111-1307, USA. - -#include +// along with this program. If not, see . -#include "codecontroller.hpp" +#include "control/codecontroller.hpp" CodeController::CodeController() {} @@ -29,9 +23,9 @@ CodeController::~CodeController() {} void -CodeController::press(Control c, bool pressed) +CodeController::press(Control c, bool pressed_) { - controls[c] = pressed; + controls[c] = pressed_; } void @@ -42,3 +36,5 @@ CodeController::update() for(int i = 0; i < CONTROLCOUNT; ++i) controls[i] = false; } + +/* EOF */