Steve Checkoway
0506ca384b
Flush all input events after the dialog box closes. Without this, pressing return to close the dialog box sends an event (usually menu start or equivalent).
2006-09-08 04:12:22 +00:00
Steve Checkoway
8c3f4cebba
Allow flushing of queued input events.
2006-09-08 04:10:47 +00:00
Glenn Maynard
99f9d8d33c
add operator<, -, -=
2006-09-08 04:08:05 +00:00
Glenn Maynard
d93a57c841
add DeviceInputList *
2006-09-08 04:04:40 +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
6daf49eac6
fix excessive Ago() calls
2006-09-08 03:44:14 +00:00
Glenn Maynard
518ac3307b
unused headers
2006-09-08 03:17:24 +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
8ebab0dde7
cleanup
2006-09-08 02:59:53 +00:00
Glenn Maynard
16e6219b70
unused headers
2006-09-08 02:58:56 +00:00
Glenn Maynard
c4c73b5179
remove transition
2006-09-08 02:13:54 +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
Glenn Maynard
29ba3d052b
use m_LastInputTime in GetSecsHeld
2006-09-08 01:41:06 +00:00
Glenn Maynard
618d0ced95
m_BeingHeldTime is the timestamp of the last input change,
...
not the time corresponding to the current input state. (If
debouncing delays reporting an input, m_BeingHeldTime
refers to the time of the delayed input.) Add m_LastInputTime,
which remembers the timestamp of the last reported input.
2006-09-08 01:39:32 +00:00
Glenn Maynard
90f15660b8
InputFilter::ReportButtonChange
2006-09-08 01:11:57 +00:00
Glenn Maynard
dc531b59e4
don't derive InputEvent from DeviceInput
2006-09-08 01:11:18 +00:00
Jason Felds
d397a60108
Add ScreenSelectLanguage.* for committing.
2006-09-08 00:30:11 +00:00
Glenn Maynard
2fa3dd658a
don't bother typedefing this
2006-09-07 23:58:46 +00:00
Glenn Maynard
fb99227ff1
don't bother typedefing this
...
no static
2006-09-07 23:57:24 +00:00
Glenn Maynard
969efc7f0f
fix GetTotalSeconds
2006-09-07 22:11:54 +00:00
Josh Allen
f617ea34dc
Adjust location of actors on ScreenSelectMusic
2006-09-07 16:25:08 +00:00
Glenn Maynard
45e5f76af0
when there's a sensible error handling path, prefer to use it instead of asserting
2006-09-07 04:26:59 +00:00
Glenn Maynard
57e544385d
remove comment about code that's not there anymore
2006-09-07 03:52:10 +00:00
Josh Allen
2249f1e96a
Replace hands with a glow
2006-09-06 19:10:36 +00:00
Josh Allen
af1412c3d8
Ability to get the scale factor between the theme's aspect ratio and screen's aspect ratio. Useful for placing actors in the same screen location regardless of aspect ratio.
2006-09-06 19:06:41 +00:00
Chris Danford
143c693a87
add ScreenSelectLanguage.*
2006-09-05 03:14:36 +00:00
Steve Checkoway
faf32603f1
Consistent user warnings.
2006-09-04 08:09:27 +00:00
Steve Checkoway
dae47979ea
Change the UserLog() to output a more consistent message.
2006-09-04 08:09:05 +00:00
Steve Checkoway
1ebea3ccf5
Cleanup.
2006-09-04 05:26:34 +00:00
Steve Checkoway
b791ce0c4c
Safe casts.
2006-09-03 05:53:53 +00:00
Steve Checkoway
72aa78003c
Fix memory leak. See stepmania-devs.
2006-09-03 05:43:36 +00:00
Steve Checkoway
808c8019d6
Simplify.
2006-09-03 05:24:24 +00:00
Steve Checkoway
9954228e17
Cleanup.
2006-09-03 05:19:46 +00:00
Steve Checkoway
4606d68fdf
Move warnings meant for the user to userlog.txt. These are as inconsistent in format as before but at least they're all in one place.
2006-09-03 05:16:09 +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
fe7a3e8127
Do not remove these files. It is not even always the same location that they'd be written.
2006-09-03 03:48:56 +00:00
Steve Checkoway
d47dd07956
Cleanup. HOOKS isn't used.
2006-09-03 03:45:05 +00:00
Steve Checkoway
d95d230875
Remove unused files.
2006-09-03 03:03:27 +00:00
Steve Checkoway
c2fc8b1fc1
Add two debugging asserts. http://sourceforge.net/tracker/index.php?func=detail&aid=1550127&group_id=37892&atid=421366
2006-09-03 02:29:11 +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
96804e2db5
Last beat hint and floating point validation text.
2006-09-02 23:31:44 +00:00
Steve Checkoway
5af590ccba
Allow setting the last beat hint in the editor.
2006-09-02 23:27:46 +00:00
Steve Checkoway
dd71daeee4
Validation function for floating point values.
...
1
2.3
-4.5
-8.2e-10
are all valid.
2006-09-02 23:27:27 +00:00
Steve Checkoway
dc98ba4190
StringToFloat overload. Returns true if the entire string is a valid, finite float.
2006-09-02 23:26:07 +00:00
Steve Checkoway
b939bdec8e
Add a last beat hint. The real last beat will be at least as long as the hint.
2006-09-02 22:22:57 +00:00
Steve Checkoway
9613079a92
static
2006-09-02 21:19:32 +00:00
Steve Checkoway
7f3f7b4d6f
Add the dance pad and the character as children so they tween fade along with the screen.
2006-09-02 20:59:06 +00:00
Steve Checkoway
74ad63769f
fromString -> FromString
...
toString -> ToString const
2006-09-02 20:24:39 +00:00