2001-05-23 22:59:40 +00:00
|
|
|
|
// input.hxx -- handle user input from various sources.
|
|
|
|
|
//
|
|
|
|
|
// Written by David Megginson, started May 2001.
|
2009-08-07 18:56:48 +00:00
|
|
|
|
// Major redesign by Torsten Dreyer, started August 2009
|
2001-05-23 22:59:40 +00:00
|
|
|
|
//
|
|
|
|
|
// Copyright (C) 2001 David Megginson, david@megginson.com
|
2009-08-07 18:56:48 +00:00
|
|
|
|
// Copyright (C) 2009 Torsten Dreyer, Torsten (at) t3r _dot_ de
|
2001-05-23 22:59:40 +00:00
|
|
|
|
//
|
|
|
|
|
// 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
|
2006-02-21 01:16:04 +00:00
|
|
|
|
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2001-05-23 22:59:40 +00:00
|
|
|
|
//
|
|
|
|
|
// $Id$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _INPUT_HXX
|
|
|
|
|
#define _INPUT_HXX
|
|
|
|
|
|
|
|
|
|
|
2003-09-24 17:20:55 +00:00
|
|
|
|
#include <simgear/structure/subsystem_mgr.hxx>
|
2001-08-10 05:17:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// General input mapping support.
|
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
2001-05-23 22:59:40 +00:00
|
|
|
|
/**
|
|
|
|
|
* Generic input module.
|
|
|
|
|
*
|
|
|
|
|
* <p>This module is designed to handle input from multiple sources --
|
|
|
|
|
* keyboard, joystick, mouse, or even panel switches -- in a consistent
|
|
|
|
|
* way, and to allow users to rebind any of the actions at runtime.</p>
|
|
|
|
|
*/
|
2009-08-07 18:56:48 +00:00
|
|
|
|
class FGInput : public SGSubsystemGroup
|
2001-05-23 22:59:40 +00:00
|
|
|
|
{
|
|
|
|
|
public:
|
2018-04-03 10:21:33 +00:00
|
|
|
|
/**
|
|
|
|
|
* Default constructor.
|
|
|
|
|
*/
|
|
|
|
|
FGInput ();
|
2001-08-10 05:17:40 +00:00
|
|
|
|
|
2018-04-03 10:21:33 +00:00
|
|
|
|
/**
|
|
|
|
|
* Destructor.
|
|
|
|
|
*/
|
|
|
|
|
virtual ~FGInput();
|
2018-01-14 13:16:56 +00:00
|
|
|
|
|
2018-04-03 08:41:27 +00:00
|
|
|
|
// Subsystem identification.
|
2018-05-04 12:18:07 +00:00
|
|
|
|
static const char* staticSubsystemClassId() { return "input"; }
|
2001-05-23 22:59:40 +00:00
|
|
|
|
};
|
|
|
|
|
|
2002-03-23 23:16:13 +00:00
|
|
|
|
#endif // _INPUT_HXX
|