Commit Graph

18839 Commits

Author SHA1 Message Date
Glenn Maynard 71c7380f44 device-neutral 2005-12-28 20:56:49 +00:00
Glenn Maynard ce93d6be50 fix overlap between keyboard digits and numbered joystick buttons 2005-12-28 20:53:54 +00:00
Glenn Maynard 87dc61af3e operator< for use in maps 2005-12-28 20:53:42 +00:00
Glenn Maynard 70d67b6e5e fix slightly excessive memory usage 2005-12-28 20:50:12 +00:00
Glenn Maynard 3193f1b774 fix slow STestInput 2005-12-28 20:41:51 +00:00
Glenn Maynard 4664c25bee fix excessive memory usage by m_ButtonState 2005-12-28 20:41:24 +00:00
Chris Danford b42d28af34 add language localization tools 2005-12-28 19:21:08 +00:00
Glenn Maynard 76e78a1bc4 avoid iterating over all buttons 2005-12-28 19:21:01 +00:00
Chris Danford bd0087ae04 CString -> RString 2005-12-28 19:17:34 +00:00
Chris Danford 1e51ee136d use language code for file name 2005-12-28 19:16:26 +00:00
Glenn Maynard 4631c30ca7 remove unused 2005-12-28 19:16:17 +00:00
Glenn Maynard 29422da7d3 MAX_DEVICE_BUTTONS -> NUM_DeviceButton 2005-12-28 19:15:48 +00:00
Glenn Maynard 445df4ea85 Don't poll and acquire the same device in both the input thread and Update. 2005-12-28 19:02:50 +00:00
Glenn Maynard 906179d035 cleanup 2005-12-28 19:00:40 +00:00
Glenn Maynard 596d672d7f remove unused 2005-12-28 18:59:25 +00:00
Glenn Maynard dd04d0d85e cleanup 2005-12-28 18:09:52 +00:00
Glenn Maynard 400580d842 change warnings to assertions 2005-12-28 09:53:03 +00:00
Glenn Maynard 841bbf4c1f remove GetNumDeviceButtons 2005-12-28 09:48:32 +00:00
Glenn Maynard 2d1ad839fa remove old 2005-12-28 09:32:31 +00:00
Glenn Maynard f9140c92ab update use of old function 2005-12-28 09:23:14 +00:00
Glenn Maynard 028cae7117 cosmetic 2005-12-28 09:15:33 +00:00
Glenn Maynard 8f6dcdbecc blind updates (probably incomplete, since this driver differs more widely
from my code)
2005-12-28 09:14:15 +00:00
Glenn Maynard 13087c9585 blind updates 2005-12-28 09:09:55 +00:00
Glenn Maynard 6571f6b475 merge input symbols 2005-12-28 09:04:51 +00:00
Glenn Maynard 31729a349c remove unused 2005-12-28 08:57:30 +00:00
Glenn Maynard c294e8eb74 merge input symbols 2005-12-28 08:55:13 +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
Glenn Maynard 9869b7c196 convenience 2005-12-28 08:49:09 +00:00
Glenn Maynard 9597cf13a4 fixup (this worked because NO_DEFAULT_KEY is defined to -1: "-1-1-1-1") 2005-12-28 08:23:25 +00:00
Glenn Maynard d9862d3ac8 static, typo 2005-12-28 08:21:39 +00:00
Glenn Maynard 7c70c416d8 At some point (1989), ISO-639 changed several language codes, after
the standard had already been released.  What's the point of having
standard language abbreviations if they're subject to change?

"Annex B" in ISO 639-1:2001 (over a decade later, if that's a year) says
"The changes were publicised, but they have not been included in printed
versions of ISO 639."  The first google hit for ISO-639 still makes no mention
of these changes (http://www.w3.org/WAI/ER/IG/ert/iso639.htm).  That rules.

Remove "XS?"; as far as I can tell that's just an error in the "native language"
page.
2005-12-28 06:32:33 +00:00
Glenn Maynard 1ff91344b1 missed commit: cleanups 2005-12-28 06:07:17 +00:00
Chris Danford 0249ef8d3d add language native names 2005-12-28 05:43:26 +00:00
Chris Danford 45082d0a74 #define hacks for smtools. Clean this up later. 2005-12-28 05:42:22 +00:00
Chris Danford f7952eaf63 CString -> RString
make GetDefaultLanguage static for smtools
2005-12-28 05:41:04 +00:00
Chris Danford d459f0b795 fix smpackage build
add localization tool to smpackage
2005-12-28 04:22:24 +00:00
Chris Danford 1fcfc22981 CString -> RString
const string params where possible for easier debug stepping
2005-12-28 03:59:52 +00:00
Chris Danford 1c209efd19 fix build 2005-12-28 03:54:41 +00:00
Glenn Maynard bc372e308b cosmetic changes only 2005-12-28 03:30:37 +00:00
Chris Danford fe3a68d5cd make string params const (stepping into RString constructors makes for frustrating debugging) 2005-12-28 03:10:07 +00:00
Chris Danford d76876d1db CString -> RString
make string params const (stepping into RString constructors makes for frustrating debugging)
2005-12-28 03:09:53 +00:00
Chris Danford 7dea392550 CString -> RString 2005-12-27 23:43:49 +00:00
Chris Danford d507f3fd28 move LuaBinding into namespace 2005-12-27 22:58:30 +00:00
Chris Danford 1f81db0cec move ScreenDimensions into a namespace 2005-12-27 18:45:07 +00:00
Chris Danford 62799c2999 CString -> RString 2005-12-27 17:45:07 +00:00
Chris Danford fb259c7237 fix compile 2005-12-27 17:39:27 +00:00
Chris Danford f99b179a5b themable player number 2005-12-27 17:16:02 +00:00
Chris Danford 17e3661755 use Lua in smpackage 2005-12-27 17:12:46 +00:00
Chris Danford 037ed8ae51 CString -> RString 2005-12-27 17:11:38 +00:00
Chris Danford 6681ad9dd4 theme date/time strings 2005-12-27 17:10:08 +00:00