Commit Graph

713 Commits

Author SHA1 Message Date
Glenn Maynard d6ad18f73e remove InputMapper::IsBeingPressed(StyleI) 2006-09-13 01:45:10 +00:00
Glenn Maynard 9f54f1b248 remove InputMapper::GetSecsHeld(StyleI) 2006-09-13 01:38:10 +00:00
Glenn Maynard e4d0b41da1 Stop using Input.StyleI. Just convert it when needed; the vast majority
of screens don't.
2006-09-13 01:29:33 +00:00
Glenn Maynard 1ca5c9a4b7 reduce StyleInput to an int 2006-09-13 00:46:21 +00:00
Glenn Maynard 6a80311172 phase out StyleI.player 2006-09-13 00:16:23 +00:00
Glenn Maynard 87bb92451b StyleI.player duplicates MenuI.player when the style is set. It's
essentially being used as a hack to see if the style is set, and
as a shortcut for converting from StyleInput back to GameInput,
complicating InputEventPlus in the process.  Remove it, and just
pass along the PlayerNumber when it's actually needed.

(incremental commit)
2006-09-13 00:02:23 +00:00
Glenn Maynard 7bab74efab As far as I can tell, StyleI.player is always the
same as MenuI.player if the style is set.  Phase
it out.
2006-09-12 23:29:08 +00:00
Glenn Maynard 3fc0d75570 remove IET_LEVEL_CHANGED 2006-09-08 18:51:12 +00:00
Glenn Maynard ec3b9382d2 InputMapper::IsButtonDown -> IsBeingPressed, to match InputFilter::IsBeingPressed 2006-09-08 02:12:30 +00:00
Steve Checkoway 18b047fd94 Accept input from P2 if it is expected. 2006-09-08 02:07:19 +00:00
Steve Checkoway 1636443da5 Don't overwrite LCTRL. 2006-09-08 01:50:59 +00:00
Steve Checkoway 5af590ccba Allow setting the last beat hint in the editor. 2006-09-02 23:27:46 +00:00
Steve Checkoway 9b415eb365 Simplify. 2006-08-21 13:11:45 +00:00
Steve Checkoway 91d0401496 Make this clear. 2006-08-20 23:26:10 +00:00
Steve Checkoway 1095b06e57 Key bindings. 2006-08-19 21:17:58 +00:00
Chris Danford 42d279926b fix crash when selecting course mods in editor 2006-08-15 21:18:23 +00:00
Chris Danford 5f888df91c fix course mods menu 2006-08-15 09:20:47 +00:00
Steve Checkoway 734f9760cc Remove unnecessary member. Just set iKeysoundIndex to -1 if it isn't valid. 2006-08-14 10:17:48 +00:00
Steve Checkoway 45db2de31d Pass release to Step(). Doesn't do anything yet. 2006-08-14 09:09:24 +00:00
Steve Checkoway fe4db99560 Remove NoteSkin hack. 2006-08-07 01:18:10 +00:00
Chris Danford b2e0ac60f8 don't theme BackgroundEffect names 2006-08-06 20:11:54 +00:00
Steve Checkoway 0cb22fb806 Apparently VC doesn't like using (group).GroupType as a type (and frankly, I couldn't get g++ to accept it outside of StepMania, either) so use the macros with PO and SO prefixes for PlayerOptions and SongOptions, respectively. Also, pointers to data members can't point to elements of an array (no idea why gcc was allowing it before) so use Assign_n and pass the index separately. (Very annoying, typeof() should really be in the standard.) 2006-08-05 08:02:49 +00:00
Steve Checkoway 62c5e096f6 Remove Toggle and make the members private. Now, when setting a lower level, it must be applied to the higher levels. 2006-08-05 05:50:11 +00:00
Steve Checkoway 1802e603b3 Update to use the new ModsGroup api. 2006-08-05 04:47:01 +00:00
Chris Danford 7ac45c24e4 save Preferred, Stage, Song, and Current modifiers separately. This eliminates the fragile mods store/restore. 2006-08-05 02:38:05 +00:00
Steve Checkoway 433155f1e1 Cache note skins before playing. 2006-08-01 20:56:16 +00:00
Steve Checkoway 0c0e843f3d / to switch players. 2006-08-01 08:28:19 +00:00
Steve Checkoway 302c0b5445 Preference for the used note skin. Also set the note skin in GAMESTATE's player options for use with combined NoteData. 2006-07-31 01:01:32 +00:00
Steve Checkoway 64dd2465e2 If we have note, use it. 2006-07-31 00:29:31 +00:00
Steve Checkoway e23ed84562 swap 2006-07-30 23:47:50 +00:00
Steve Checkoway e36fb16502 Use a PlayerNumber when inserting taps. 2006-07-30 23:45:55 +00:00
Mike Calfin ae8d0b689b Disabled start menu returning to edit menu during practice. This was causing the center button in pump mode to exit practice mode. 2006-07-30 01:54:08 +00:00
Steve Checkoway b3056eee1c Fix mines not being triggered when being held down (for the most part). It's still possible for mines to not be triggered if the input released after the mine has passed but before the next Update() frame. This is much tricker to deal with since we can't ask if the button was held down at some time in the past It is also much harder to detect than having held down the button for an entire measure and watched mines just not be hit.
This should also fix autoplay misses by telling Step() exactly which row was pressed.

There are also comments in there about possible bugs in the grading/key sounds but I didn't want to change those without getting input from other devs since it does change the way we grade "jack hammers."
2006-07-28 09:05:58 +00:00
Steve Checkoway b8ab1f7393 Fix possible crash if Player accesses the NoteData in it's dtor and the Player is a PlayerPlus. Now just treat PlayerPlus as a smart pointer to a Player with the added Load( const NoteData& ) member function. This is only a connivence class anyway. 2006-07-20 02:19:03 +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
Steve Checkoway 8502fc3083 Use PlayerPlus (a Player plus a NoteData, this gives the old behavior of Player, i.e. calling Load( nd )). 2006-07-17 00:56:23 +00:00
Glenn Maynard abf1fcec37 remove unused 2006-07-15 01:53:58 +00:00
Steve Checkoway 6ee71e464b It looks strange having the Background menu items have no text so add some defaults. 2006-07-14 22:00:12 +00:00
Steve Checkoway b8a3a8b0f0 Oops. 2006-07-14 21:34:17 +00:00
Steve Checkoway 39b27416b6 Don't theme file names. 2006-07-14 21:33:08 +00:00
Steve Checkoway 80698277cf Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Steve Checkoway 1e7852ed1f Don't crash if we're not editing a course entry. 2006-06-24 07:46:17 +00:00
Glenn Maynard 29cea74bdf yes 2006-06-24 05:25:39 +00:00
Steve Checkoway 6b38a1bea5 TWO_PLAYERS_SHARED_SIDES. 2006-06-24 00:09:50 +00:00
Chris Danford 5e0dccf837 fix preview music 2006-06-23 17:54:48 +00:00
Glenn Maynard d9184b84b3 don't crash if a button is pressed that's not directly mapped in the current mode (eg. EDIT_BUTTON_ADJUST_FINE) 2006-06-15 07:02:03 +00:00
Glenn Maynard 3c9897989c GetDeviceSpecificInputString and DeviceInputToLocalizedString are
the same: "a string suitable for display", but just formatted slightly
differently.  Handle these the same way (so hopefully a way to merge
them will become visible).

This also fixes the RageInputDevice dependency on RageInput.
2006-06-15 06:07:45 +00:00
Glenn Maynard 80c3beccb6 DeviceInputToLocalizedAndTranslatedString -> DeviceInputToLocalizedString
(translation is a part of localization)
2006-06-15 04:12:30 +00:00
Glenn Maynard 179c00cf40 DeviceButtonToLocalizedAndTranslatedString -> DeviceInputToTranslatedString
DeviceInputToTranslatedString -> DeviceInputToLocalizedAndTranslatedString
2006-06-15 03:39:25 +00:00