/* $Id: controller_def.hpp 1399 2007-06-12 12:51:02Z grumbel $ ** __ __ __ ___ __ __ __ __ ** / \ / \__| ____ __| _/_______/ |_|__| | | | ____ ** \ \/\/ / |/ \ / __ |/ ___/\ __\ | | | | _/ __ \ ** \ /| | | \/ /_/ |\___ \ | | | | |_| |_\ ___/ ** \__/\ / |__|___| /\____ /____ > |__| |__|____/____/\___ > ** \/ \/ \/ \/ \/ ** Copyright (C) 2000,2005 Ingo Ruhnke ** ** 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 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. */ #ifndef HEADER_CONTROLLER_DEF_HXX #define HEADER_CONTROLLER_DEF_HXX #include #include #include "input/input_event.hpp" #include "input/controller_description.hpp" enum InputEventName { MOUSE_MOTION_X, MOUSE_MOTION_Y, X_AXIS, // used to run left/right Y_AXIS, // used to aim up/down X2_AXIS, Y2_AXIS, PRIMARY_BUTTON, // used to ok a dialog or for running SECONDARY_BUTTON, // used to cancel a dialog or for jumping TERTIARY_BUTTON, // used to cancel a dialog or for jumping PDA_BUTTON, // display the PDA INVENTORY_BUTTON, // display inventory button PAUSE_BUTTON, // used to pause the game AIM_BUTTON, // used to draw the gun and aim // These are not to be used alone, but only as alternatives for // other keys ESCAPE_BUTTON, // hardcoded to escape key ENTER_BUTTON, // hardcoded to enter key LAST_EVENT }; #define JUMP_BUTTON PRIMARY_BUTTON #define RUN_BUTTON SECONDARY_BUTTON #define USE_BUTTON TERTIARY_BUTTON #define OK_BUTTON PRIMARY_BUTTON #define CANCEL_BUTTON SECONDARY_BUTTON extern ControllerDescription controller_description; #endif /* EOF */