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
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
c294e8eb74
merge input symbols
2005-12-28 08:55:13 +00:00
Glenn Maynard
d9862d3ac8
static, typo
2005-12-28 08:21:39 +00:00
Glenn Maynard
bc372e308b
cosmetic changes only
2005-12-28 03:30:37 +00:00
Steve Checkoway
2301565b2a
Fix threaded input not actually running in the created thread. Allow nonthreaded input (by using the gui--i.e. main event loop--thread) according to PREFSMAN->m_bThreadedInput.
2005-12-27 05:55:06 +00:00
Glenn Maynard
792f8a4008
unused header
...
this stuff shouldn't be an input handler anymore ...
2005-12-24 02:38:31 +00:00
Glenn Maynard
8c78478d61
unneeded header
...
clarify coop mode
2005-12-21 00:29:35 +00:00