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

« back to all changes in this revision

Viewing changes to src/emucore/Event.cxx

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna, Franczen Attila, Luca Falavigna
  • Date: 2008-11-08 12:04:12 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20081108120412-w6xq87vzgokstfey
Tags: 2.6.1-0ubuntu1
[ Franczen Attila ]
* New upstream release (LP: #183571).
* Updated policy to 3.8.0.

[ Luca Falavigna ]
* debian/patches/gcc-4.3: fix FTBFS with gcc-4.3 compiler.

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-2005 by Bradford W. Mott and the Stella team
 
11
// Copyright (c) 1995-2008 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: Event.cxx,v 1.8 2006/02/09 15:10:17 stephena Exp $
 
16
// $Id: Event.cxx,v 1.15 2008/03/02 19:20:50 stephena Exp $
17
17
//============================================================================
18
18
 
 
19
#include "OSystem.hxx"
 
20
#include "Console.hxx"
 
21
#include "Control.hxx"
 
22
 
19
23
#include "Event.hxx"
20
 
#include "EventStreamer.hxx"
21
24
 
22
25
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
23
 
Event::Event(EventStreamer* ev)
24
 
  : myNumberOfTypes(Event::LastType),
25
 
    myEventStreamer(ev)
 
26
Event::Event()
 
27
  : myNumberOfTypes(Event::LastType)
26
28
{
27
 
  // Set all of the events to 0 / false to start with
28
29
  clear();
29
30
}
30
31
 
43
44
void Event::set(Type type, Int32 value)
44
45
{
45
46
  myValues[type] = value;
46
 
 
47
 
/* FIXME - add full functionality at some point
48
 
  // Add to history if we're in recording mode
49
 
  if(myEventStreamer->isRecording())
50
 
    myEventStreamer->addEvent(type, value);
51
 
*/
52
47
}
53
48
 
54
49
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -