Commit Graph

38 Commits

Author SHA1 Message Date
Glenn Maynard 3193f1b774 fix slow STestInput 2005-12-28 20:41:51 +00:00
Glenn Maynard 7039cafa9a Merge input symbols: any device can have any input key.
- This reduces the number of types associated with input; adding a
   distinct input type doesn't introduce a whole new enumerated type
   and related functions.
 - Special handling for different devices is needed less often.  If you
   want to respond to an F1 press, simply check for KEY_F1; the device
   type doesn't really matter (though it'll usually be a keyboard).
 - This allows cleaner support for generalized USB devices.  While they're
   usually of the traditional classes (keyboard, joystick) with associated
   inputs, they don't have to be.
 - Forced casts between parallel types can be removed, and weakly-specified
   variables (ints instead of the enum type) can be fixed.

Some things that might have been merged havn't; for example, arrow keys
on a keyboard (KEY_UP) are still distinct from axes on a joystick (JOY_UP).
These may or may not be merged in the future.

Some were: removed PUMP_ symbols.  Treat them as generic buttons, and just
give them names with GetDeviceSpecificInputString.  It's not worth
introducing more special names for something only used in one place.
2005-12-28 08:52:20 +00:00
Chris Danford d0d5798568 update device names on the fly 2005-12-19 10:00:47 +00:00
Chris Danford 37f82b43f7 remove CStringArray #define 2005-12-09 21:36:22 +00:00
Glenn Maynard cfe76dd96e cleanup 2005-12-09 01:48:20 +00:00
Glenn Maynard 5b88cd2f4d '<' : signed/unsigned mismatch 2005-12-08 23:47:02 +00:00
Chris Danford ca7da4b531 show InputDevice name next to description 2005-12-08 05:22:40 +00:00
Glenn Maynard b3d5f2390e cleanup 2005-10-17 06:37:59 +00:00
Glenn Maynard dfc67cd84d ScreenWithMenuElements::StartTransitioning -> StartTransitioningScreen, to make searching
for it easier (vs. Transition::StartTransitioning).  (Trying to simplify tweening; this
may go back later.)
2005-10-13 22:17:13 +00:00
Chris Danford bb10c7c21f pass around InputEventPlus in Screen::Input instead of multiple input structures 2005-09-05 02:26:50 +00:00
Chris Danford 365e564939 allow InputDeviceHandlers to provide a device-specific input string for displaying 2005-08-17 05:56:59 +00:00
Chris Danford c12b9f504f broadcast button presses so that overlays can do something tricky 2005-08-15 15:59:49 +00:00
Glenn Maynard 6e8747d0b6 cleanup 2005-07-12 02:21:28 +00:00
Glenn Maynard 28133ca105 cleanup 2005-07-07 10:29:04 +00:00
Chris Danford b03a55d199 show input devices in TestInput 2005-06-03 19:03:13 +00:00
Glenn Maynard fb3baf752b update screen 2005-05-09 04:17:17 +00:00
Glenn Maynard ed1c6ff32f add input button comments 2005-05-08 09:19:35 +00:00
Glenn Maynard e67ab7877d simplify 2005-05-08 08:54:35 +00:00
Chris Danford f46f9d70d7 human readable Keymaps.ini 2005-04-24 02:15:41 +00:00
Chris Danford a29ac7a5fc prettier test input
don't show secondary mappings if OnlyDedicatedMenuButtons is on
2005-04-23 22:50:13 +00:00
Glenn Maynard b51b0cfb4c Use Init() for all screens, so we can set state before the base class
members are loaded--they'll see resets, score finalization, etc.  It
also results in smaller code, due to a g++ bug that causes constructors
to be emitted several times.
2005-02-23 06:29:05 +00:00
Chris Danford 4223e09cc8 GetPathTo -> GetPath 2005-02-06 03:32:53 +00:00
Glenn Maynard 783e492b0b GetSecondaryMenuButtonName -> GetMenuButtonSecondaryFunction 2004-12-04 04:50:18 +00:00
Glenn Maynard 36d462ffd6 figure out secondary button names dynamically 2004-12-04 04:39:51 +00:00
Chris Danford 7f336c2ce6 self-registering screen classes 2004-11-26 17:28:47 +00:00
Chris Danford 72bd480883 CENTER_* -> SCREEN_CENTER 2004-11-05 06:35:10 +00:00
Glenn Maynard f7e215e914 cleanup 2004-09-28 05:51:10 +00:00
Chris Danford 807d892f4f allow theme to specify logical screen dimensions 2004-09-21 06:07:12 +00:00
Chris Danford ff4c12b727 rename GameDef -> Game 2004-07-25 17:07:32 +00:00
Chris Danford 64628fac21 remove enum Game. Instead, pass around the GameDef pointer 2004-07-25 04:27:20 +00:00
Glenn Maynard 94d0cba859 RageSounds -> GameSoundManager 2004-07-08 00:10:34 +00:00
Glenn Maynard e4d124dd91 license update 2004-06-08 05:22:33 +00:00
Chris Danford df5cd5e813 move MenuElements into a base ScreenWithMenuElements so that metrics can be overridden using the Fallback mechanism 2004-05-01 23:19:33 +00:00
Chris Danford 7807b0c703 don't use PlayOnce in performance critical places 2004-03-23 23:56:38 +00:00
Chris Danford 928fcd467a make nav-able with just 3 menu buttons 2003-12-20 21:36:09 +00:00
Chris Danford 0cd3f10351 add controller number to input test 2003-10-12 19:46:07 +00:00
Chris Danford d308ed0187 finish input test screen 2003-10-11 08:52:07 +00:00
Chris Danford c76e819d1d finish image centering code
add input test screen
2003-10-11 07:47:34 +00:00