Steve Checkoway
f89680bf06
Simplify.
2006-09-08 05:05:42 +00:00
Steve Checkoway
d9e7fc0ecd
No, I wanted to both reset and flush the queue.
2006-09-08 05:05:09 +00:00
Steve Checkoway
00be7b5462
Reset().
2006-09-08 04:49:48 +00:00
Steve Checkoway
eff97a098e
Revert. I should be calling Reset() instead.
2006-09-08 04:49:40 +00:00
Glenn Maynard
3deda620b9
const
...
simplify InputFilter::GetPressedButtons
2006-09-08 04:26:23 +00:00
Glenn Maynard
ed0746a166
typedef (this one is typedefed just because it's used a lot)
2006-09-08 04:20:47 +00:00
Glenn Maynard
6c24615123
fix "Right-Left" hold_and_press code triggering when left is pressed
...
first
2006-09-08 04:19:42 +00:00
Glenn Maynard
4b26951f0a
split InputQueue::WasPressedRecently from AllWerePressedRecently.
...
This simplifies AllWerePressedRecently, and makes the input state
at the time of the press available.
2006-09-08 04:18:01 +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
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