made no sense to restrict Stella to only work with two joysticks, since
there's no reason one couldn't use four devices, with each one emulating
a paddle (once I get paddle remapping done). So I've removed that
restriction, and also removed the 'leftport' and 'rightport' arguments.
The one case where remapping a joystick *does* make sense is for
multiple Stelladaptors. In that case, there might only be one
Stelladaptor installed, but you'd like it to emulate the right virtual
port. Previously this wasn't possible, but now it is with the addition
of the 'sa1' and 'sa2' commandline arguments. These arguments accept
either 'left' or 'right', specifying which virtual port to emulate.
Updated the InputDialog virtual device tab for remapping Stelladaptors.
Shortened some keynames in EventHandler, so that the actual character is
used (for example, ? instead of QUESTION).
Some fixes for the OS/2 port.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@884 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
to select which joysticks are mapped to which virtual port.
Some work on the mouse/paddle emulation. It now uses a slider instead
of a dropdown widget. Added slider for paddle sensitivity, but it's
not tied to the core yet, and doesn't do anything.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@881 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
InputDialog. This new class will include all things related to Stella
input. For now, the old eventmapper is on one tab, and the 'mouse is
paddle' setting is on the other. The latter tab will be expanded to
include SDL to Stella joystick enumeration (currently done by the
leftport and rightport commandline arguments), as well as the ability
to set mouse sensitivity for paddle emulation.
Note, there's still a bug in the interaction between the eventmapper
tab and focusing on the event list. Focusing only takes effect after
switching to a new tab, then back to the remapper.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@879 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Fixed bug where Escape key (by default assigned to enter Launcher)
couldn't be remapped to anything else.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@878 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
the executable will now be slightly smaller in this case.
Moved common 'type()' method from children of the Controller
base class back to the parent. There was no need to have separate
methods for each different type.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@876 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
little faster than before, and it makes the code much easier to understand.
Made Stelladaptor devices only send events based on which type of
controller is connected to the emulated port (Joystick, Paddles, Driving).
Since we can't detect which type of controller is attached to a
Stelladaptor, previously the code just sent events for all three types.
This causes problems with some games that don't know how to deal with
events that cannot possibly happen at the same time on a real machine
(ie, paddle 0 *and* joystick 0 being operated).
Added code to 'swallow' garbage events generated when Stella is first
launched, usually caused by jitter in the joystick or mouse. This fixes
some weird problems with internal Stella events being set before we
even enter the main gaming loop.
Still TODO is add support for joystick hats and trackballs, once I can
locate a device which has these items.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@875 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Currently they must be 4 hex characters long, and do not support
compare before writing (direct-write, not compare-write). These
codes are also executed per-frame.
Changed 'cheetah' commandline/debugger argument to 'cheat', and any type
of cheat may be specified here. Currently supported are 4 char RAM,
6 char Cheetah, and 8 char Stella extended Cheetah.
Still TODO is add load/save of cheats, add one-shot and compare-write
cheats, and finally add a dialog to do all this from within Stella.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@874 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
were accessible from the launcher, and were causing a segfault when pressed.
Fixed bug where 'mouse is paddle xxx' number wasn't being set when
starting Stella for the first time.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@873 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Added 'leftport' and 'rightport' commandline arguments, which specify
which SDL joystick devices to use for each port. These arguments are
basically indices into the internal SDL joystick array. Joystick
handling has changed somewhat, in that there are now only ever two
joysticks used by Stella (J0 - left and J1 - right). The port
arguments serve to specify which stick is J0, and which is J1.
This means the tie between SDL enumeration of joysticks is broken,
and (for example) a Stelladaptor which has SDL index of 1 (second
stick found) can emulate the left 2600 port, and an SDL joystick 0 can
emulate the right 2600 port. This fixes a long-standing bug whereby the
only way to break SDL joystick enumeration was to remap all associated
events in the Event Mapper.
Still TODO is add joystick hat/ball detection to the event handler, and
allow those events to be remapped (perhaps to emulate the paddles).
Also TODO is add a GUI for selecting the joystick ports from a list of
SDL joysticks.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@872 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
types in state file handling. Added '--x-libraries' option to configure,
to specify different locations for X11 (only affects UNIX port).
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@869 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Fixed bug with Cheetah codes not working from the commandline or prompt.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@868 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
--disable-xxx ones.
Some misc. updates and documentation fixes for the 2.0.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@864 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Brad, I think the extra work put in by the other Stella members warrants
a mention in the Author list.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@861 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
keep it all in one file, and not have to maintain separate SPEC files
for each RPM distro.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@858 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
Mac Classic (\r) line terminators, on all platforms.
Loading a symbol file now makes the ROM widget re-disassemble, so you can
actually see the symbols...
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@856 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
to Stella. The total number of possible events is now prepended to these
lists, and this number is checked when reloading Stella. So if the number
of events in Stella changes, the defaults are used for key and joy mappings.
Note that under certain circumstances this algorithm can still be fooled.
Specifically, if we add a new event and remove another, the total count
will remain the same, but the list should be invalidated. With the
current code, this invalidation won't happen.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@855 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
compiled into Stella, and Stella will be shown with an icon in Windows
Explorer, etc.
Modified Makefile to create a Win32 binary package from the commandline.
You can do 'make win32dist DISTNAME=stella-release', and a package
named 'stella-release' will be created. Still todo is get zip support
working, so it can be zipped directly from the Makefile.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@854 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
to correctly set the height of the Prompt/tab area in the debugger.
The new minimum height is 27 lines in the prompt, which corresponds to an
~ 700 pixel high window. This should fix the problems OSX users were
having with the dock taking up too much space onscreen in 1024x768 mode.
Changing the height from within Stella still requires a reload of the ROM,
and now a message is printed stating this fact. The GUI code is in need
of a minor overhaul so that resizing can be done automatically, without
requiring a ROM reload and also taking font size into account. This will
be completed for a future release.
Finally, the RomWidget is now also resized when the debugger height
changes, taking the extra vertical space into account.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@853 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
'Untitled' in the Stella main window, as well as when taking snapshots.
The actual ROM filename is now used if a properties entry isn't present.
Added profile entries for Swoops! (NTSC and PAL), thanks to vdub_bobby.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@851 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
reported before I did the release:
Added 'dirtyrects' commandline argument and also to the 'Video Settings'
dialog box. This determines whether to use SDL_UpdateRect() or
SDL_UpdateRects() in software rendering mode. Apparently, this has
to be configurable, since some Windows systems work well with one
or the other.
Fixed bug where pressing F12 (snapshot) without have a snapshot
directory defined caused a segfault.
Made ROM launcher ignore case when sorting ROMs. So lowercase names
are now embedded in the correct place, instead of being placed after
all the uppercase names.
Fixed ZIP ROM support when there are multiple items in a ZIP archive.
Stella now searches the ZIP file for the first file ending in either
'.bin' or '.a26' (not case sensitive).
Reverted window resize key combos for OSX back to 'Cmd =' and 'Cmd -'
to match the 1.4.2 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@849 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This happens before "$romname.stella" is loaded.
Fixed bug that caused the emulator to crash if either of the startup batch
files contained a "base" command.
Minor work on documentation (still in progress).
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@835 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba