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

« back to all changes in this revision

Viewing changes to src/emucore/Control.cxx

  • 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.cxx,v 1.1.1.1 2001/12/27 19:54:21 bwmott Exp $
 
16
// $Id: Control.cxx,v 1.3 2005/11/12 22:59:20 stephena Exp $
17
17
//============================================================================
18
18
 
19
19
#include <assert.h>
22
22
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23
23
Controller::Controller(Jack jack, const Event& event)
24
24
    : myJack(jack),
25
 
      myEvent(event)
 
25
      myEvent(event),
 
26
      myType(Joystick)  // use joystick by default
26
27
{
27
28
}
28
29
 
32
33
}
33
34
 
34
35
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 
36
const Controller::Type Controller::type()
 
37
{
 
38
  return myType;
 
39
}
 
40
 
 
41
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
35
42
const Int32 Controller::maximumResistance = 0x7FFFFFFF;
36
43
 
37
44
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
40
47
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
41
48
Controller::Controller(const Controller& c)
42
49
    : myJack(c.myJack),
43
 
      myEvent(c.myEvent)
 
50
      myEvent(c.myEvent),
 
51
      myType(c.myType)
44
52
{
45
53
  assert(false);
46
54
}
51
59
  assert(false);
52
60
  return *this;
53
61
}
54