~ubuntu-branches/debian/sid/stella/sid

« back to all changes in this revision

Viewing changes to src/debugger/gui/JoystickWidget.hxx

  • Committer: Package Import Robot
  • Author(s): Stephen Kitt
  • Date: 2012-02-05 08:09:05 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20120205080905-9ej05rmkibowsm7j
Tags: 3.5.5-1
* New upstream version.
* Rewrite debian/copyright, using DEP-5 and updating for 2012.
* Update manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//============================================================================
 
2
//
 
3
//   SSSS    tt          lll  lll       
 
4
//  SS  SS   tt           ll   ll        
 
5
//  SS     tttttt  eeee   ll   ll   aaaa 
 
6
//   SSSS    tt   ee  ee  ll   ll      aa
 
7
//      SS   tt   eeeeee  ll   ll   aaaaa  --  "An Atari 2600 VCS Emulator"
 
8
//  SS  SS   tt   ee      ll   ll  aa  aa
 
9
//   SSSS     ttt  eeeee llll llll  aaaaa
 
10
//
 
11
// Copyright (c) 1995-2012 by Bradford W. Mott, Stephen Anthony
 
12
// and the Stella Team
 
13
//
 
14
// See the file "License.txt" for information on usage and redistribution of
 
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
 
16
//
 
17
// $Id: JoystickWidget.hxx 2337 2012-01-06 18:17:41Z stephena $
 
18
//============================================================================
 
19
 
 
20
#ifndef JOYSTICK_WIDGET_HXX
 
21
#define JOYSTICK_WIDGET_HXX
 
22
 
 
23
#include "Control.hxx"
 
24
#include "Event.hxx"
 
25
#include "ControllerWidget.hxx"
 
26
 
 
27
class JoystickWidget : public ControllerWidget
 
28
{
 
29
  public:
 
30
    JoystickWidget(GuiObject* boss, const GUI::Font& font, int x, int y,
 
31
                   Controller& controller);
 
32
    virtual ~JoystickWidget();
 
33
 
 
34
    void loadConfig();
 
35
    void handleCommand(CommandSender* sender, int cmd, int data, int id);
 
36
 
 
37
  private:
 
38
    enum { kJUp = 0, kJDown, kJLeft, kJRight, kJFire };
 
39
 
 
40
    CheckboxWidget* myPins[5];
 
41
    static Controller::DigitalPin ourPinNo[5];
 
42
};
 
43
 
 
44
#endif