1
//============================================================================
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
11
// Copyright (c) 1995-2012 by Bradford W. Mott, Stephen Anthony
12
// and the Stella Team
14
// See the file "License.txt" for information on usage and redistribution of
15
// this file, and for a DISCLAIMER OF ALL WARRANTIES.
17
// $Id: JoystickWidget.hxx 2337 2012-01-06 18:17:41Z stephena $
18
//============================================================================
20
#ifndef JOYSTICK_WIDGET_HXX
21
#define JOYSTICK_WIDGET_HXX
23
#include "Control.hxx"
25
#include "ControllerWidget.hxx"
27
class JoystickWidget : public ControllerWidget
30
JoystickWidget(GuiObject* boss, const GUI::Font& font, int x, int y,
31
Controller& controller);
32
virtual ~JoystickWidget();
35
void handleCommand(CommandSender* sender, int cmd, int data, int id);
38
enum { kJUp = 0, kJDown, kJLeft, kJRight, kJFire };
40
CheckboxWidget* myPins[5];
41
static Controller::DigitalPin ourPinNo[5];