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
Chris Danford
8cdce5cfda
fix NumPad keys
2006-06-10 21:19:35 +00:00
Chris Danford
8c4cedf63f
let OS handle key modifers (fixes number buttons w/ French keyboard)
2006-06-10 20:33:56 +00:00
Chris Danford
dce168b0c2
international keyboard support
2006-06-10 06:50:50 +00:00
Steve Checkoway
f39e79efed
The last of the changes, I hope.
2006-05-14 07:04:28 +00:00
Chris Danford
5749dbb258
add "joystick with keyboard" button for Back
2006-04-21 00:46:36 +00:00
Glenn Maynard
0d4e8b44c2
Convert ACP strings from the OS that we show to the user.
2006-04-04 23:44:37 +00:00
Glenn Maynard
05c1ab44b9
simplify
2006-04-04 23:40:43 +00:00
Glenn Maynard
f93db25802
Systems with many unbuffered joystick devices may send 50 presses
...
per frame. Use a large value, so we only trigger as a diagnostic for
broken RageInputDrivers.
2006-03-26 01:42:37 +00:00
Chris Danford
c0dfb2453d
Don't always poll DI for joystick changes in the main thread. Instead, poll the HID registry value, then poll DI for 15 seconds to catch the joystick change.
2006-03-22 22:39:35 +00:00
Chris Danford
345a588e2d
move DevicesChanged polling into separate thread because the DInput calls block. Only supported if ThreadedInput=1.
2006-03-17 00:29:10 +00:00
Chris Danford
4dd5728ee0
style cleanup
2006-03-17 00:15:35 +00:00
Chris Danford
bf0cc13a47
Change GetDevicesAndDescriptions to fill in one vector instead of 2
...
Ignore changes in non-joystick devices when automapping
2006-02-27 17:51:27 +00:00
Steve Checkoway
5a916de95b
Use -1 as a sentinel.
2006-02-27 00:20:18 +00:00
Steve Checkoway
0882afee6f
Cleanup.
2006-02-24 21:51:31 +00:00
Steve Checkoway
d396941353
Return mac keyboard strings (and also a bunch of international keyboard buttons that I don't have, can't test, and in many cases probably don't even exist.
2006-02-24 21:43:41 +00:00
Steve Checkoway
c4fde125e4
Basic support for the USB pump pad. It is not HID-compliant and reports strange values when buttons are pressed and released. In particular, it claims that it's values are in the range [0,1], yet actually returns values in the range [0,3]. Also, there are two instances where releasing two buttons sends the same report (UR and MID, as well as DL and DR).
...
I suspect this makes it pretty much impossible to use (although the guy with the pad has the glowing report of, "and it seemed to work OK") but without actually having a pad with which to test, it's about all I can do.
2006-02-24 13:29:15 +00:00
Steve Checkoway
4199cbc9c0
Create JoystickDevices for HID game pads (untested).
2006-02-10 08:50:24 +00:00
Steve Checkoway
bb9848adcc
Revert.
2006-02-10 04:49:45 +00:00
Chris Danford
02786346b8
use gamepads
2006-02-09 01:53:24 +00:00
Chris Danford
a1fcc64baf
poll DInput for number of joysticks instead of polling registry for num HID devices. Fixes us resetting INPUTMAN too early (after Windows sees the HID device but before DirectInput exposes it)
2006-02-09 00:53:20 +00:00
Steve Checkoway
3a669a84e6
Hot pluggable input devices on OS X.
2006-01-28 07:01:10 +00:00
Steve Checkoway
28f218abbc
Year.
2006-01-27 10:33:47 +00:00
Glenn Maynard
dca00042c2
fix segfault when unbound keys are pressed
2006-01-27 08:15:46 +00:00
Steve Checkoway
dae517d250
Make sure that the run loop runs until the input handler terminates by adding a run loop source.
2006-01-27 07:33:11 +00:00
Glenn Maynard
322f713e89
cleanup
2006-01-27 00:59:42 +00:00
Glenn Maynard
89a1e0c79e
cleanup
2006-01-27 00:58:20 +00:00
Chris Danford
7bec4f7a3e
show "space" instead of "Key "
2006-01-26 02:41:35 +00:00
Renaud Lepage
aab7d3a74e
Update.
2006-01-23 23:11:26 +00:00
Steve Checkoway
bab07ebf58
Factor out HIDDevice.
2006-01-23 03:48:03 +00:00
Steve Checkoway
92f64dc940
Device -> HIDDevice.
2006-01-23 01:37:11 +00:00
Steve Checkoway
5ea801b506
Style.
2006-01-23 01:30:38 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Steve Checkoway
9ed7548de1
Use new api.
2006-01-21 11:14:13 +00:00
Steve Checkoway
d5cde8a0f7
Cleanup.
2006-01-18 09:44:30 +00:00
Chris Danford
a6d2ad5957
cleanup joystick with keyboard hack
2006-01-17 09:03:33 +00:00
Steve Checkoway
b362a5969f
Simplify.
2006-01-14 01:04:48 +00:00
Chris Danford
7fe210a516
silence warning spew if no hid devices plugged in
2006-01-09 01:10:37 +00:00
Glenn Maynard
f06fd4b416
No input driver should ever send a button pressed event without later
...
sending a corresponding release event. This results in "stuck
keys" in InputFilter's image of the devices. We've worked around
this by forcibly releasing all keys when focus is lost, but it's
still a bug in the input driver. Fix this, by releasing devices
when we discard events.
2005-12-30 02:30:23 +00:00
Steve Checkoway
0e366eef75
Fix compile and warnings.
2005-12-29 11:36:20 +00:00
Glenn Maynard
6177fe5884
fixup
2005-12-29 00:42:03 +00:00
Glenn Maynard
983a34dde4
style
2005-12-28 23:34:10 +00:00
Glenn Maynard
b73fe69ff2
style
2005-12-28 23:33:11 +00:00
Glenn Maynard
88fb796c6b
cleanup
2005-12-28 21:08:10 +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
f9140c92ab
update use of old function
2005-12-28 09:23:14 +00:00