~ubuntu-branches/debian/squeeze/stella/squeeze

« back to all changes in this revision

Viewing changes to src/emucore/Control.hxx

  • Committer: Bazaar Package Importer
  • Author(s): Mario Iseli
  • Date: 2006-04-08 18:38:25 UTC
  • mfrom: (1.1.2 upstream) (2.1.1 etch)
  • Revision ID: james.westby@ubuntu.com-20060408183825-vu1jk57rk929derx
* New Maintainer (Closes: #361345)
* New upstream release (Closes: #349725)
* Build-Depend now on libslang2-dev (Closes: #325577)
* Complete rebuild of debian/, upgraded to policy-standards
  3.6.2 and compat-level 5.
* Removed stellarc since stella only reads ~/.stellarc and even
  works without a first config.
* New debian/watch file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
//  SS  SS   tt   ee      ll   ll  aa  aa
9
9
//   SSSS     ttt  eeeee llll llll  aaaaa
10
10
//
11
 
// Copyright (c) 1995-1998 by Bradford W. Mott
 
11
// Copyright (c) 1995-2005 by Bradford W. Mott and the Stella team
12
12
//
13
13
// See the file "license" for information on usage and redistribution of
14
14
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
15
15
//
16
 
// $Id: Control.hxx,v 1.1.1.1 2001/12/27 19:54:21 bwmott Exp $
 
16
// $Id: Control.hxx,v 1.4 2005/11/12 22:59:20 stephena Exp $
17
17
//============================================================================
18
18
 
19
19
#ifndef CONTROLLER_HXX
55
55
  of the controller from the prespective of the controller's jack.  
56
56
 
57
57
  @author  Bradford W. Mott
58
 
  @version $Id: Control.hxx,v 1.1.1.1 2001/12/27 19:54:21 bwmott Exp $
 
58
  @version $Id: Control.hxx,v 1.4 2005/11/12 22:59:20 stephena Exp $
59
59
*/
60
60
class Controller
61
61
{
68
68
      Left, Right
69
69
    };
70
70
 
 
71
    /**
 
72
      Enumeration of the controller types
 
73
    */
 
74
    enum Type
 
75
    {
 
76
      BoosterGrip, Driving, Keyboard, Paddles, Joystick
 
77
    };
 
78
 
71
79
  public:
72
80
    /**
73
81
      Create a new controller plugged into the specified jack
82
90
    */
83
91
    virtual ~Controller();
84
92
 
 
93
    /**
 
94
      Returns the type of this controller.
 
95
    */
 
96
    const Type type();
 
97
 
85
98
  public:
86
99
    /**
87
100
      Enumeration of the digital pins of a controller port
141
154
    /// Reference to the event object this controller uses
142
155
    const Event& myEvent;
143
156
 
 
157
    /// Specifies which type of controller this is (defined by child classes)
 
158
    Type myType;
 
159
 
144
160
  protected:
145
161
    // Copy constructor isn't supported by controllers so make it private
146
162
    Controller(const Controller&);
148
164
    // Assignment operator isn't supported by controllers so make it private
149
165
    Controller& operator = (const Controller&);
150
166
};
 
167
 
151
168
#endif
152