Commit Graph

755 Commits

Author SHA1 Message Date
Glenn Maynard e82add1f62 SetInputScheme 2006-09-30 09:35:02 +00:00
Glenn Maynard 3460f79f54 simplify 2006-09-30 07:48:36 +00:00
Glenn Maynard 09f5687615 simplify 2006-09-30 07:47:54 +00:00
Glenn Maynard 303ae8cfea simplify 2006-09-30 07:45:15 +00:00
Glenn Maynard f03cd3054a This is only called by ScreenOptionsMasterPrefs, which saves prefs on its own. 2006-09-30 07:01:07 +00:00
Glenn Maynard 8f0d30d709 fix new 2006-09-28 05:02:33 +00:00
Glenn Maynard 1cdab04b96 fix weird singleton init 2006-09-28 03:41:56 +00:00
Glenn Maynard 39e89b5986 EndGame in GameLoop 2006-09-21 05:08:42 +00:00
Glenn Maynard cb288fbfba cleanup 2006-09-21 05:04:33 +00:00
Glenn Maynard 10f0929551 don't crash if SCREENMAN isn't up (this should probably be done
by the caller)
2006-09-21 04:57:38 +00:00
Glenn Maynard 1490cf8075 no longer needed 2006-09-21 04:45:49 +00:00
Glenn Maynard e779328560 delete lua later 2006-09-21 04:23:31 +00:00
Glenn Maynard 8d81ef8806 init Lua earlier 2006-09-21 04:06:44 +00:00
Glenn Maynard 92ade8fa90 reduce THEME->UpdateLuaGlobals() to LUA->RegisterTypes 2006-09-21 03:55:22 +00:00
Glenn Maynard 7210df525b remove coin debouncing; InputFilter does better generic debouncing
on all inputs
2006-09-19 09:42:25 +00:00
Glenn Maynard f9149b5b0d cleanup 2006-09-19 09:37:02 +00:00
Glenn Maynard 26fd04c73c in SpecialFiles.h 2006-09-19 09:22:01 +00:00
Steve Checkoway 6ea2a41b00 Cleanup RageException::Throw(). Do not use ssprintf() inside of Throw() and do not pass it bare error messages. Use RageException::Throw( "%s", sError.c_str() ); instead. Be consistent with quoting file names "%s" and theme metrics as "%s : %s". Try to make them complete English sentences when possible. 2006-09-17 01:19:19 +00:00
Steve Checkoway ed9ae19afd Only flush the screen shot directory. 2006-09-16 03:16:03 +00:00
Steve Checkoway 363e726652 Only flush the directory cache of the screen shot directory. 2006-09-16 03:09:42 +00:00
Steve Checkoway 2cf71907ee Fix comment. Only 5 numbers. 2006-09-16 02:26:14 +00:00
Glenn Maynard 6c8d5774fc remove old SDL stuff 2006-09-15 23:48:15 +00:00
Glenn Maynard 3f40f6c796 unneeded 2006-09-15 06:06:36 +00:00
Glenn Maynard c7dfb9f2ec MenuInput -> MenuButton 2006-09-14 20:52:34 +00:00
Glenn Maynard a05fe7e8ab simplify GameToMenu 2006-09-14 20:37:41 +00:00
Glenn Maynard 21d275e21c input.pn 2006-09-14 03:18:59 +00:00
Glenn Maynard 8859950d46 RememberInput after filling everything in 2006-09-14 03:11:38 +00:00
Glenn Maynard d5857acb3a A problem with removing StyleI.player: an obscure difference
between StyleI.player and MenuI.player is that StyleI is set even
if there's no attached MenuButton, and MenuI.player is set even
if there's no attached column.  That's an odd distinction, anyway.

Move input.MenuI.player to input.pn.  This also puts it in the
same place as input.mp.
2006-09-13 09:57:07 +00:00
Glenn Maynard e206261b80 ARRAYSIZE -> ARRAYLEN 2006-09-13 03:11:38 +00:00
Glenn Maynard 6d24d2f0b4 remove InputEventPlus::StyleI 2006-09-13 01:30:57 +00:00
Glenn Maynard 9139883e64 simplify 2006-09-13 01:18:11 +00:00
Glenn Maynard 6aec914bfc simplify 2006-09-13 01:18:10 +00:00
Glenn Maynard a2923556c9 alt-enter, etc. check modifier state at the time of the press 2006-09-08 04:16:10 +00:00
Glenn Maynard be6d3d4043 Include the complete input state with each input report.
This only deals with buttons being held, so won't cause
performance issues.

This deals with a general problem of the input layer:
you can query the current state of the inputs, but inputs
are received in a queue, causing inconsistencies.

This is why pressing enter during a load, then holding Alt
after pressing it, causes the game to switch fullscreen
after the load finishes; checking for "alt-enter" should
be checking if Alt was pressed when Enter was pressed,
not whether it's pressed right now.

Similarly, CodeDetector has difficulty handling a "Right-Left"
and a "Left-Right" code simultaneously.  If both buttons
are pressed quickly, it needs to check whether Right was
pressed at the time Left was reported, not at the time
EnteredCode was called.
2006-09-08 04:03:14 +00:00
Glenn Maynard 4da8857f1d Simplify InputQueue: use InputEventPlus. This has the
timestamp it needs, and we can match MenuI from it without
doing extra conversions.
2006-09-08 03:16:35 +00:00
Glenn Maynard dc531b59e4 don't derive InputEvent from DeviceInput 2006-09-08 01:11:18 +00:00
Glenn Maynard fb99227ff1 don't bother typedefing this
no static
2006-09-07 23:57:24 +00:00
Steve Checkoway c6eb78a3cf Add a file for user warnings, userlog.txt. Until now, these types of warnings have either been cluttering info.txt or buried in log.txt where no sane user would want to look. 2006-09-03 05:14:18 +00:00
Steve Checkoway 0df9785a79 Fix input strangeness. I don't understand the rational for setting mp when GAMESTATE->m_bMultiplayer is false, but this preserves that changing Game, Style, and Menu inputs when it is false. 2006-09-03 02:01:43 +00:00
Steve Checkoway 136915b798 Simplify. 2006-09-02 19:50:59 +00:00
Chris Danford 1e6f968d8e add AdditionalCourseFolders pref 2006-08-14 20:05:35 +00:00
Steve Checkoway 608261a152 Add optional Init(). This can be used so that HOOKS is set and accessible during the child crash handler by moving that code to Init(). 2006-08-12 22:06:19 +00:00
Steve Checkoway b9216dcc97 Don't load songs with just dumping strings. 2006-08-08 10:54:33 +00:00
Steve Checkoway 2654587e16 --ExportLuaInformation. Add a stylesheet. (Not finished yet.) 2006-08-08 10:25:19 +00:00
Steve Checkoway 87e4f8b49f Rename ExportNsisStrings.* to ExportStrings.* and add a function (and a command line option) to produce an XML file containing information about lua. 2006-08-08 07:47:16 +00:00
Steve Checkoway a07e194cf1 Revert. Fixes Linux build. 2006-07-18 05:51:37 +00:00
Jason Felds 366c3440d4 Fix VC8 macro redef warning. (more to come) 2006-07-18 03:56:37 +00:00
Glenn Maynard 7a4bfabf3b always set mp 2006-07-01 03:51:46 +00:00
Ben Anderson 38a7ff109e NSIS is only used on Windows. 2006-06-15 02:21:47 +00:00
Steve Checkoway 288d9c70e5 Fix crash caused by loading edit courses from profiles. 2006-06-14 05:43:50 +00:00