Glenn Maynard
dda0e12deb
init centering matrix with identity by default; reinit other stacks, too, so
...
we're consistent if DISPLAY is recreated
2006-09-10 08:34:50 +00:00
Glenn Maynard
c374b10233
fix strange init
2006-09-10 07:56:06 +00:00
Josh Allen
fed0fad69b
Fix image size warning
2006-09-09 04:31:45 +00:00
Glenn Maynard
c628676660
use g_ButtonStates instead of GetPressedButtons; GetPressedButtons returns the last reported input, not the immediate state
2006-09-08 19:02:11 +00:00
Glenn Maynard
897c1c9057
revert "simplify"; this removed an API call
2006-09-08 18:59:57 +00:00
Glenn Maynard
9e3f9f6fb3
const
2006-09-08 18:54:01 +00:00
Glenn Maynard
3fc0d75570
remove IET_LEVEL_CHANGED
2006-09-08 18:51:12 +00:00
Glenn Maynard
83e010a63e
remove IET_LEVEL_CHANGED. I didn't end up using it, and it's a clumsy way of handling analog inputs.
2006-09-08 18:49:14 +00:00
Steve Checkoway
f147eef491
Sort.
2006-09-08 06:26:43 +00:00
Steve Checkoway
2a0692f4ed
Cleanup.
2006-09-08 06:26:31 +00:00
Steve Checkoway
e9651a568f
Undef.
2006-09-08 05:40:39 +00:00
Steve Checkoway
c06c8470a3
Fix prototype.
2006-09-08 05:36:29 +00:00
Steve Checkoway
90336496bc
Cleanup.
2006-09-08 05:06:02 +00:00
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