Steve Checkoway
1e505ff81e
copy/paste error.
2006-11-18 20:27:15 +00:00
Steve Checkoway
7d6a2a7079
fix
2006-11-18 20:07:38 +00:00
Steve Checkoway
ce35f77653
simplify
2006-11-18 19:59:25 +00:00
Steve Checkoway
a25915855a
Update other arches. Not tested.
2006-11-18 19:35:02 +00:00
Steve Checkoway
6365e3607f
Move stuff out of arch using a registration system modeled after Screen.
2006-11-18 19:34:28 +00:00
Steve Checkoway
0d10c76e87
Unscatter arch includes.
2006-11-17 18:25:20 +00:00
Glenn Maynard
1e21152174
fix compile
2006-11-02 03:47:02 +00:00
Jason Felds
9b2c28db6a
True VC8 fix (thanks again drano).
2006-09-30 09:19:33 +00:00
Glenn Maynard
dfd95fd730
InputDevice_Invalid
2006-09-26 21:19:17 +00:00
Jason Felds
d48f3ea016
VC8 Hack: pToUnicodeEx doesn't work yet. Use the old definition.
2006-09-25 01:35:33 +00:00
Glenn Maynard
95faef1776
cleanup
2006-09-21 07:41:22 +00:00
Glenn Maynard
d2df988807
use ToUnicodeEx if available
2006-09-21 07:32:34 +00:00
Glenn Maynard
03ce23e9ea
ARRAYLEN
2006-09-18 23:27:09 +00:00
Glenn Maynard
b77024f3bc
include
2006-09-18 22:45:42 +00:00
Glenn Maynard
1f7fe1afd3
include
2006-09-18 22:24:18 +00:00
Glenn Maynard
6a1db3af03
remove old sdl stuff
2006-09-15 23:52:37 +00:00
Steve Checkoway
87d3d0e043
Cleanup.
2006-09-15 19:03:21 +00:00
Steve Checkoway
89c3ef56d4
Remove Xbox hack. (Unless there's a DEL defined as well.)
2006-09-15 18:21:41 +00:00
Steve Checkoway
125fccc33c
Simplify. Don't pass the button pressed bool along. This can be derived from the level every time.
2006-09-15 08:31:53 +00:00
Renaud Lepage
597cadd347
"Ugly" Xbox fix. It's that, or renaming all the DELETE define of the InputHandler and its users.
2006-09-15 03:09:17 +00:00
Steve Checkoway
5083893317
Use UCKeyTranslate if the 'uchr' resource exists. If not, fall back on the 'KCHR' resource.
2006-09-14 09:13:46 +00:00
Steve Checkoway
dd0e3ce082
Cleanup.
2006-09-14 07:20:05 +00:00
Steve Checkoway
4dd57b99bd
Don't hard code joystick and pump numbers.
2006-09-14 06:06:53 +00:00
Chris Danford
790ccdbcbe
fix joystick number not shown on input mapping screen
2006-08-08 08:46:40 +00:00
Steve Checkoway
fd424585f2
Fix assert with monkey keyboard.
2006-07-26 00:31:48 +00:00
Steve Checkoway
7d2ff868e1
Cleanup. (This was written by Chris but InputHandler_MonkeyKeyboard.h was written by Glenn?)
2006-07-26 00:29:26 +00:00
Steve Checkoway
a07e194cf1
Revert. Fixes Linux build.
2006-07-18 05:51:37 +00:00
Jason Felds
366c3440d4
Fix VC8 macro redef warning. (more to come)
2006-07-18 03:56:37 +00:00
Steve Checkoway
80698277cf
Don't use rand()%n. The function specified by the ANSI committee is a terrible linear congruential generator. In fact, it's so bad that the low order bit alternates. The algorithm implemented as RandomFloat() seems to be Park and Miller's "minimum standard" generator which is better (but not great). [See Knuth for more information.]
...
Any place where you would use rand()%n, use RandomInt(0, n) instead.
2006-06-26 12:14:30 +00:00
Chris Danford
f94566100f
no character for Enter
2006-06-16 06:28:31 +00:00
Chris Danford
0b5baba88c
fix compile
2006-06-16 06:27:53 +00:00
Glenn Maynard
c29c725f4b
cleanup (one-step conversion instead of three-step)
2006-06-15 07:29:34 +00:00
Glenn Maynard
aa9eea16e0
more nudging: merge DeviceButtonToString calls
2006-06-15 06:38:24 +00:00
Glenn Maynard
cc2fb2b137
equivalent but more consistent
2006-06-15 06:35:36 +00:00
Glenn Maynard
1157c5eae9
more obvious behavior, and change "Joy1_B1" to "Joy1 B1" for
...
consistency
2006-06-15 06:34:07 +00:00
Glenn Maynard
0b1eedce2c
simplify
2006-06-15 06:30:35 +00:00
Glenn Maynard
c9e55137a5
nudging GetDeviceSpecificInputString and GetLocalizedInputString
...
together
2006-06-15 06:23:58 +00:00
Glenn Maynard
0980208a1f
DeviceButtonToString is already sanely capitalized
2006-06-15 06:21:32 +00:00
Glenn Maynard
35864b415c
don't capitalize Space
2006-06-15 06:20:37 +00:00
Glenn Maynard
81ddf2d8e0
show "Space" if the character value is ' ', regardless of the KEY_ value
2006-06-15 06:17:46 +00:00
Glenn Maynard
1d4601eca7
localize "space"
2006-06-15 06:16:11 +00:00
Glenn Maynard
3c9897989c
GetDeviceSpecificInputString and DeviceInputToLocalizedString are
...
the same: "a string suitable for display", but just formatted slightly
differently. Handle these the same way (so hopefully a way to merge
them will become visible).
This also fixes the RageInputDevice dependency on RageInput.
2006-06-15 06:07:45 +00:00
Glenn Maynard
181c9d51f9
trying to unwrap this input stuff:
...
DeviceInputToTranslatedString will try DeviceButtonToChar; but we just
tried that; it then uses DeviceButtonToString. use DeviceButtonToString
directly
2006-06-15 04:07:48 +00:00
Glenn Maynard
9ee37b04be
cleanup
2006-06-15 03:50:43 +00:00
Glenn Maynard
defdede155
DeviceButtonToLocalizedAndTranslatedString -> DeviceInputToTranslatedString
2006-06-15 03:39:45 +00:00
Chris Danford
dd4d759dd5
ToAsciiEx maps these keys to a character. They shouldn't be mapped to any character.
2006-06-11 20:43:58 +00:00
Chris Danford
632ad67cdb
fix some keys have ugly names in test input screen
2006-06-11 07:44:16 +00:00
Chris Danford
e2eb5135e5
add international keyboard support
2006-06-11 07:12:01 +00:00
Chris Danford
b79cb92052
remove use of towupper for OS X
2006-06-11 01:28:52 +00:00
Steve Checkoway
fa56d41c17
Use wchar_t. This doesn't actually compile on the mac using the 10.2.8 sdk because wctype.h is missing so no towupper function exists.
2006-06-10 22:36:25 +00:00