Commit Graph

382 Commits

Author SHA1 Message Date
stephena c2aba6aa6f More work on the EventHandler and EventMappingDialog classes. The
EventHandler class now contains string mappings for all possible SDL
keys, which should hopefully take care of our international users.

Added 'Map', 'Erase' and 'Cancel' buttons to the EventMappingDialog.
They still don't do much, but it will now be an easy matter to add the
hooks into EventHandler.  You *are* able to scroll through the list
and see which keys are bound to which actions, though.

This approach is *much* cleaner than in previous code.  Now the EventHandler
actually does the remapping; the EventMappingDialog only collects the
events and associated actions and passes them on.  This is much cleaner
than before, when (for example) the FrameBuffer was doing remapping!  What
the hell did the framebuffer have to do with event mapping???


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@391 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-04-05 00:40:55 +00:00
stephena 9fe7eb8894 Added Event Remapping dialog. It doesn't actually do any remapping yet,
but the hooks are there for it.

Added ScrollBar and ListWidget GUI objects.  These will form the basis
of the new ROM launcher, as well as the memory lister in the debugger.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@390 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-04-04 02:19:22 +00:00
stephena cad03a19cb Cleaned up event gathering loop and moved it from mainSDL into the
EventHandler class.  Eventually, *all* event-related stuff will move
to this class (which makes sense, considering its name).

Removed all references to joystick stuff for now.  It will be re-added later.

Re-enabled snapshot support.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@389 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-04-03 19:37:32 +00:00
stephena 088210251e Some minor changes to line widths in software mode.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@388 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-28 20:36:39 +00:00
stephena 8d67d0c760 OpenGL mode is working again, except it doesn't yet render any text.
Also took the opportunity to clean up the FrameBuffer classes.  There
was a lot of cruddy code there ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@387 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-28 00:04:54 +00:00
stephena b5fb1d277d Added Game Info Dialog. It basically lists all the relevant information
in the stella.pro file for the particular game.

Added Help Dialog, which gives a description of the most commonly
used non-remappable commands.  This still has to be adapted for OSX
shortcuts.

Finished the Sound Dialog.  Still TODO is remove the requirement for
restarting Stella before sound can be disabled.

All that's left now are the Miscellaneous and Event Remapping Dialogs.
The later will be the hardest, but it will also work a lot better than
in previous versions of Stella.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@386 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-27 03:07:34 +00:00
stephena f3dec28824 Added Audio Dialog and almost finished off Video Dialog.
Currently, some settings don't take effect until Stella restarts.

It's my goal to eventually eliminate many of these. so Stella
is truly no longer a commandline program.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@385 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-26 19:26:48 +00:00
stephena 7e3c3de3ce Almost completely finished the Video Dialog interface. Only six more
to go :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@384 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-26 04:19:56 +00:00
stephena a4376c52cf Load config info for the dialog boxes. Otherwise, the settings could
get out of sync when the user changed a settings with a hotkey.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@383 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-15 22:28:05 +00:00
stephena c7383bb103 Added beginnings of VideoDialog box. Things are proceeding nicely ...
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@382 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-14 04:08:15 +00:00
stephena 24a81a0d11 Added ScummVM font handling code. The font is now proportional,
which means more text can fit onscreen.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@381 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-13 03:38:41 +00:00
stephena b0ec277a94 It's alive! Somewhat at least. Entering menu mode with the TAB key
actually draws the Options Dialog box.  No events are handled yet, but
at least it's a start.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@380 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-12 01:47:15 +00:00
stephena bed46fe840 Yet more in-game GUI changes. It's getting close to compiling, but no
idea on if it will actually work :)


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@379 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-11 23:36:30 +00:00
stephena 4e129001cd More work on implementing an in-game GUI.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@378 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-03-10 22:59:40 +00:00
stephena 5489ca7248 Starting to add GUI code from ScummVM.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@377 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-27 23:41:19 +00:00
markgrebe f3b4648eac Update for MacOSX version 1.4.2b
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@376 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-27 02:25:25 +00:00
markgrebe c01df20e0a Muted sound during cartridge open and preferences dialogs
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@375 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-26 22:16:37 +00:00
stephena c10b612913 - More restructuring of the event handling code.
- Finally able to quit a game and start another within the same
program invocation (Escape quits current game, Ctrl-Q quits emulator)

 - More tightly integrated SDL into the codebase.  It's about time we
make use of SDL exclusively, and possibly speed up the code.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@374 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-25 02:29:38 +00:00
stephena 40dff9964f First stab at starting any number of games from one invocation of Stella.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@373 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-22 20:19:32 +00:00
stephena aa8b0b9bdd OpenGL mode is working again; snapshot and menuing support still MIA.
Rearranged some things from Settings to OSystem, since many things in the
Settings class weren't actually related to settings at all.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@372 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-22 18:41:16 +00:00
stephena f3a31ca452 Hurray, it compiles and runs again. At least in software only mode,
and without snapshot support.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@371 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-22 02:59:54 +00:00
markgrebe ce2974f6a9 Turned optimization on and changed version number
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@370 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-22 01:34:09 +00:00
markgrebe 2e5b873b88 Added change descriptions for MacOSX version 1.4.2a
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@369 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-22 01:33:03 +00:00
stephena 9c42f79392 More huge code reorganizations.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@368 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-21 20:43:53 +00:00
markgrebe c30051b0a3 Fixed Atari_time delay loop time calculator, which was causing a hang when a very large time delay would be sent as a parameter to usleep
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@367 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-21 19:32:07 +00:00
stephena 94d59674ad And so it begins ...
A major restructuring of the framebuffer code, which will eventually
result in an internal GUI and ROM browser ALA ScummVM.

The codebase is severely broken ATM.  It compiles, but that's about it.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@366 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-21 02:23:57 +00:00
stephena 267afcca06 Added a few last minute documentation changes. For the next version, I'm
putting all documentation in the main HTML file, since it's too time
consuming to maintain separate files that say the same thing.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@364 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-19 14:59:58 +00:00
markgrebe aba74d2939 In the init function, set the number of screen modes to zero before they are calculated, as this was causing a problem with the Macintosh version when the game was reset, or a new game was started
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@363 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 23:33:32 +00:00
stephena 47f8619ec5 Modified the FrameBuffer::refresh method to take a boolean value
representing whether a refresh should be done immediately or in the
next frame.

Do an immediate refresh just before taking a snapshot, to make sure
any onscreen messages aren't taken as part of the snapshot.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@362 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 21:26:31 +00:00
markgrebe a626c5bfbb Added ability to reset current game without reopening the same cartridge
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@361 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 05:37:15 +00:00
markgrebe 4bd87ac26c Added ability to reset current game without reopening the same cartridge
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@360 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 05:31:48 +00:00
markgrebe 2909cf001d Updated date
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@359 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 05:29:49 +00:00
markgrebe 9055dae6a7 Updated version number
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@358 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 05:28:57 +00:00
markgrebe 44203e578a Updated Mac code to reflect setting changes which were implemented in other versions
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@357 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-18 01:05:23 +00:00
stephena 248fcb92dc Some file cleanups for the impending 1.4.2 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@356 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-02-13 19:17:02 +00:00
bwmott cf07869026 Michael Rideout pointed out, using a demo program he wrote, that there's
a 1 cycle delay associated with modifications to VBLANK.  Also modified
the delay values associated with changes to NUSIZ0 & NUSIZ1 to fix
issues with Title Match.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@355 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-05 02:57:58 +00:00
stephena b46caf3cc7 Changed 'gl_fsmax' to mean "use desktop resolution in fullscreen OpenGL mode".
For OS's that don't support it, use the maximum resolution possible.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@354 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-04 21:04:20 +00:00
stephena 54f1aaa63f Made the default maximum zoom be 4, instead of 2.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@353 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-04 20:06:20 +00:00
stephena 5993383be6 Added screenWidth() and screenHeight() methods to the SDL framebuffer.
This will allow to figure out exactly how big a window can be on the current
screen.  Also, it will mean I can finally change the 'gl_fsmax' option to do
what I originally meant it to do; maximize to the desktop resolution when
doing fullscreen OpenGL.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@352 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-04 19:59:13 +00:00
stephena 3c0e0af714 Opps, the sound levels are changed by 'Alt [' and 'Alt ]', not the Ctrl keys.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@351 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-04 02:38:45 +00:00
stephena 6508718b39 - Added 'Ctrl ]' and 'Ctrl [' keys to dynamically increase/decrease volume.
- Added 'Ctrl 0', 'Ctrl 1', 'Ctrl 2', 'Ctrl 3' keys to dynamically set which
paddle the mouse should emulate.

- Updated the user manual with above options.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@350 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-04 02:29:31 +00:00
stephena 219687f521 Opps, forgot to exclude the makefile on the last import.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@349 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-03 19:16:55 +00:00
stephena e84e982439 Finally got rid of the annoying popping in starting/quiting Stella, and when
entering/exiting menu or pause mode.  This one has bugged me for quite some
time, and was just made worse by my new laptop (where the sound would cause
me to jump about 5 feet every time Stella started :)

Rearranged the output a little wrt sound and video settings.  This is only
seen if 'showinfo' is enabled.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@348 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2005-01-03 19:16:09 +00:00
stephena d890dbf6cf Added some 'Montezumas Revenge' hack entries. Thanks go to Trebor from
AtariAge for these.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@347 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-09-18 16:34:18 +00:00
stephena a22ad3fd2c Added 'video_driver' support to the StellaX frontend. Windib is now the
default video driver, and it's up to 10 times faster in software mode
than directx.

Updated the manual with the new 'video_driver' argument.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@346 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-09-14 19:10:29 +00:00
stephena 03d8c0eab5 First attempt at adding SDL_VIDEODRIVER support as a commandline option.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@345 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-09-14 16:10:28 +00:00
stephena a76e7516a8 Updated the Windows port concerning the recent Settings class changes.
Mark, if you're reading this, the OSX port will need to be fixed as well.
The changes are trivial.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@344 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-08-18 21:20:55 +00:00
stephena 97aabd229a Fixed a bug reported by D. Baron whereby the /etc/stella.pro file wasn't
used even when it should have been.  OSX and Windows users would never
see this, since those ports don't (yet) have any concept of user vs.
system files.  The OSX and Windows ports will have to be updated though,
because of changes in the Settings class.

Changed the code in SettingsUNIX::fileExists() to only check for the
existence of a file, not whether you can write to it.  This is what
the name implies.

Bumped the version number to 1.4.2_cvs.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@343 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-08-17 01:17:08 +00:00
markgrebe 0430cd0f22 Made About Box compatible with OSX 10.1
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@341 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-08-15 02:59:14 +00:00
markgrebe 873863049f Made About Box compatible with OSX 10.1
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@340 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2004-08-15 02:46:14 +00:00