Steve Checkoway
4300663c5e
Simplify. DeviceInputs are equal if their InputDevice and DeviceButton are equal.
2006-09-02 19:34:54 +00:00
Chris Danford
7f821e8cfc
CString -> RString
2006-01-22 01:00:06 +00:00
Glenn Maynard
4664c25bee
fix excessive memory usage by m_ButtonState
2005-12-28 20:41:24 +00:00
Glenn Maynard
76e78a1bc4
avoid iterating over all buttons
2005-12-28 19:21:01 +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
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
29603ba7db
remove unused parameter
2005-12-18 22:53:47 +00:00
Glenn Maynard
95b71dbd3b
cleanup
2005-11-06 15:24:26 +00:00
Glenn Maynard
b691117e2c
cleanup
2005-11-06 13:00:34 +00:00
Glenn Maynard
499dcf9c32
debouncing code broke handling of threaded inputs; fix
2005-11-06 12:14:35 +00:00
Glenn Maynard
4e464c3777
remove old comment
2005-10-24 06:42:28 +00:00
Glenn Maynard
2b035b3ebd
cleanup
2005-10-24 06:33:32 +00:00
Glenn Maynard
e8f7db11f3
optimize InputFilter::Update (.5ms -> .05ms on k7/1000)
2005-10-24 06:32:30 +00:00
Chris Danford
ae7300b3be
const cleanup
2005-10-15 16:47:44 +00:00
Glenn Maynard
76e6382e7d
Fix up repeat logic: instead of waiting g_fTimeBeforeSlow for the first repeat,
...
it was waiting g_fTimeBeforeSlow+g_fTimeBetweenRepeats, ignoring the
first repeat). Adjust TIME_BEFORE_SLOW_REPEATS so the rate doesn't
actually change. Set correct timestamps for IET_REPEAT events.
2005-09-22 23:59:31 +00:00
Glenn Maynard
87a9243dc5
use fNewHoldTime here, not fOldHoldTime
2005-09-22 23:53:50 +00:00
Glenn Maynard
ee9fd1ecc2
remove fast repeat rate. It's the same as the slow rate, and nothing uses it. (IET_FAST_REPEAT kept for now, since some code uses it.)
2005-09-22 23:22:18 +00:00
Glenn Maynard
1df0a43b3f
implement generic high-level input debouncing
2005-09-19 07:09:55 +00:00
Glenn Maynard
a82c54ddf7
don't send IET_LEVEL_CHANGED for -1 (which means "not supported")
2005-08-03 23:15:18 +00:00
Chris Danford
8eb39f2355
assert -> warning
2005-06-08 06:29:48 +00:00
Glenn Maynard
f39c970c43
better error
2005-06-06 18:30:12 +00:00
Chris Danford
2c9993c900
assert when an input handler passes us a bad DeviceInput
2005-06-03 22:54:35 +00:00
Glenn Maynard
f8f94844b2
fix zero timestamps on reset
...
warn about zero timestamps
2005-05-17 20:50:39 +00:00
Glenn Maynard
c765508bc1
fix crash due to memset()ing a non-POD
2005-05-10 04:42:14 +00:00
Glenn Maynard
ed1c6ff32f
add input button comments
2005-05-08 09:19:35 +00:00
Chris Danford
f46f9d70d7
human readable Keymaps.ini
2005-04-24 02:15:41 +00:00
Glenn Maynard
b1d8b2a51e
simplify
2004-09-25 06:40:18 +00:00
Glenn Maynard
4e5077ef84
cleanup, handle IET_LEVEL_CHANGED
2004-09-09 22:14:33 +00:00
Glenn Maynard
a3e10dee2b
no, really, remove ugly "JoytechInput" stuff that was never actually implemented
2004-09-09 18:34:28 +00:00
Glenn Maynard
6c28f869b1
remove ugly "JoytechInput" stuff that was never actually implemented
2004-09-09 18:33:09 +00:00
Glenn Maynard
771ebbe17b
remove ugly "JoytechInput" stuff that was never actually implemented
2004-09-09 18:31:53 +00:00
Glenn Maynard
733127d8ed
license update
2004-06-08 01:24:17 +00:00
Glenn Maynard
aedc2d39e1
remove trace
2004-04-20 04:13:23 +00:00
Glenn Maynard
ef193252bc
noisy debug: log button presses/releases
2004-03-29 05:03:05 +00:00
Glenn Maynard
a220a6fb55
can't use CircBuf for InputFilter; many input threads may be coming in with
...
events and it's only threadsafe for one writer
2004-03-21 08:20:30 +00:00
Glenn Maynard
e779e80350
give RageMutexes names, so they can be identified more easily
2004-03-21 04:10:43 +00:00
Glenn Maynard
9b2f146605
SetRepeatRate, ResetRepeatRate, ResetKeyRepeat
2003-11-25 21:46:30 +00:00
Chris Danford
8c3db31ba7
optimize InputFilter::Update
2003-10-07 05:59:58 +00:00
Glenn Maynard
b13cb43aa6
IniFile::GetValueB->GetValue, etc. Cleanup.
2003-10-02 02:03:29 +00:00
Glenn Maynard
b10eca3a32
remove DeviceInput hack
2003-09-28 23:23:21 +00:00
Chris Danford
76711921e6
performance fix
2003-09-07 19:35:32 +00:00
Glenn Maynard
8f3927478f
add ForceKey, StopForcingKey
2003-09-03 21:49:11 +00:00
Glenn Maynard
a5e1f86efd
fix
2003-07-26 22:29:34 +00:00
Glenn Maynard
dc9b6ed06d
don't pull in RageThreads.h
2003-07-26 21:58:48 +00:00
Glenn Maynard
d413d6f0be
(It's supposed to look like a function call; a function call that casts one
...
type to another.)
Use a C-style cast instead of static_cast; more readable.
2003-07-15 00:50:52 +00:00
Steve Checkoway
423f27eb02
g++ didn't like InputDevice(d) for some reason. (I don't much like it myself. It looks too much like a function call or something.)
2003-07-15 00:40:18 +00:00
Glenn Maynard
5adb26a169
thread safety
2003-07-14 06:21:12 +00:00
Glenn Maynard
9fe82671a6
fix InputFilter::Reset losing key release events
2003-06-25 06:33:18 +00:00
Chris Danford
ae2be8a170
Fix stuck keys after toggle fullscreen
2003-06-22 04:38:05 +00:00