X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FInput.cpp;h=dde36593e7c4da1353735f9c49e436d8c5b7be42;hb=ff29f47f799d99cec7c2a6aa2cf818da2b931fc5;hp=88970f90bbb32cf2c37a371bf341e9e0a8c8d2a8;hpb=1c7d28a2fc93699ab955ea66203d0c36bba9d977;p=lugaru.git diff --git a/Source/Input.cpp b/Source/Input.cpp index 88970f9..dde3659 100644 --- a/Source/Input.cpp +++ b/Source/Input.cpp @@ -1,23 +1,21 @@ /* Copyright (C) 2003, 2010 - Wolfire Games -Copyright (C) 2010 - Côme BERNIGAUD +Copyright (C) 2010-2016 - Lugaru contributors (see AUTHORS file) This file is part of Lugaru. -Lugaru 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. +Lugaru 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 distributed in the hope that it will be useful, +Lugaru 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. +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. +along with Lugaru. If not, see . */ /**> HEADER FILES <**/ @@ -90,7 +88,7 @@ unsigned short Input::CharToKey(const char* which) return SDL_NUM_SCANCODES; } -Boolean Input::MouseClicked() +bool Input::MouseClicked() { return isKeyPressed(SDL_NUM_SCANCODES + SDL_BUTTON_LEFT); }