Commit Graph

22336 Commits

Author SHA1 Message Date
Glenn Maynard 2f6aaf940f ctor 2006-09-13 00:48:56 +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 5be4331e71 phase out StyleI.player 2006-09-13 00:09:00 +00:00
Glenn Maynard 6e40d3e5ef oops, fix 2006-09-13 00:05:43 +00:00
Glenn Maynard 10c6320d18 getting rid of StyleI.player 2006-09-13 00:05:01 +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 c419567b23 simplify 2006-09-12 23:57:56 +00:00
Glenn Maynard 2fa74742c0 remove unused 2006-09-12 23:47:55 +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 8a6f490c80 simplify. (If you're not a screen that deals with StyleI.col, you probably shouldn't be using StyleI at all.) 2006-09-12 23:21:14 +00:00
Glenn Maynard ba1daf8183 annoying log 2006-09-12 22:01:59 +00:00
Steve Checkoway 48a329597c Fix comment stripping. Fixes editor bug. 2006-09-12 04:28:11 +00:00
Steve Checkoway 1f1e574baf Spacing. 2006-09-12 04:27:48 +00:00
Steve Checkoway 4a0718c4e8 Flush the directory cache so that --temp-- is removed. Is there a reason to do this rather than access(2)? (Obviously, this would need to be done in the FileManager itself.) 2006-09-12 03:24:58 +00:00
Steve Checkoway e7f2cc2d50 Spacing. 2006-09-12 03:23:28 +00:00
Chris Danford de817e62ac fix newline typo 2006-09-11 06:32:31 +00:00
AJ Kelly ddce316475 move P1 and P2 scores/frames, rework groove radar labels so they don't get in the way 2006-09-10 19:29:28 +00:00
Glenn Maynard 231171a7f8 cleanup 2006-09-10 08:37:10 +00:00
Glenn Maynard 1f471f511b reset settings which are set every frame or every actor
in SetDefaultRenderStates; fixes centering
2006-09-10 08:36:31 +00:00
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