Commit Graph

107 Commits

Author SHA1 Message Date
Chris Danford 7ae238376d Change GetInputDeviceState to return InputDeviceState_NoInputHandler instead of InputDeviceState_Invalid
Rename "_Disconnected" to "_Unplugged"
2007-09-09 04:11:39 +00:00
Glenn Maynard a42e1bcbfb InputHandler::Create 2006-12-17 07:42:02 +00:00
Steve Checkoway 0d10c76e87 Unscatter arch includes. 2006-11-17 18:25:20 +00:00
Steve Checkoway 30d9410b65 Unneeded. 2006-11-01 10:45:51 +00:00
Glenn Maynard 8a4ddd1515 Invalid 2006-10-07 04:13:43 +00:00
Glenn Maynard c690fdcfe4 unify registration 2006-09-29 00:01:32 +00:00
Glenn Maynard f4975f1f54 simpler Lua boilerplate 2006-09-27 20:30:29 +00:00
Glenn Maynard 4be207e419 fixup 2006-09-21 04:49:55 +00:00
Glenn Maynard 2b7e2849fd simplify singleton registration 2006-09-21 04:27:45 +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 f8319554d7 remove RageInput::DeviceButtonToChar 2006-06-15 03:41:59 +00:00
Glenn Maynard 825d59ec44 RageInput::DeviceInputToChar (not keyboard-specific) 2006-06-15 03:33:29 +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
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
Chris Danford 62833f56cb show input device list on mapping screen 2006-01-26 06:17:57 +00:00
Chris Danford 7f821e8cfc CString -> RString 2006-01-22 01:00:06 +00:00
Glenn Maynard 757fdf0795 move InputDrivers into RageInput 2005-12-31 02:20:03 +00:00
Glenn Maynard 29603ba7db remove unused parameter 2005-12-18 22:53:47 +00:00
Glenn Maynard 7faaa73afd remove unused fDeltaTime parameter 2005-12-18 22:51:12 +00:00
Glenn Maynard e9ffd980f0 fix stale INPUTMAN pointer in Lua after device change 2005-12-18 21:24:33 +00:00
Chris Danford c95a5dc8e5 add InputDevice::DevicesChanged 2005-12-18 03:08:12 +00:00
Glenn Maynard cfe76dd96e cleanup 2005-12-09 01:48:20 +00:00
Chris Danford 65d71a4f23 expermienting with DEFINE_METHOD macro for Lua methods 2005-09-10 02:47:04 +00:00
Chris Danford 5351df6586 query for InputDeviceState 2005-08-20 22:49:25 +00:00
Chris Danford 365e564939 allow InputDeviceHandlers to provide a device-specific input string for displaying 2005-08-17 05:56:59 +00:00
Glenn Maynard 9d7f835609 no need to template Luna specializations 2005-06-20 05:02:03 +00:00
Glenn Maynard d66f00ea23 lua cleanup 2005-06-15 02:27:16 +00:00
Chris Danford b4eda6dddf add Lua method 2005-06-04 01:56:03 +00:00
Glenn Maynard bd8fb8f727 style cleanup 2005-05-14 09:26:05 +00:00
Glenn Maynard e9ffb71c5f add RageInput::AddHandler 2005-05-14 09:23:30 +00:00
Ben Anderson 167e5aebc0 Put all the Make* functions into a single .h/.cpp file (yes, kinda like the way it was), and add Make* functions for DialogDrivers. This means there's only one object that's affected by drivers being added/removed. (Driver default changes are a little different -- 2 or 3 objects.) Also one or two minor cleanups. (note: I apparently don't know much about CVS, it appears that some files might not make it into the repository; hang tight, I'm trying to find a solution.) 2005-03-15 00:30:26 +00:00
Ben Anderson 0db665d4d6 Thorough(!) remodeling of the arch/ directory and the contents therein; fixed link-time warnings on GCC and should make things a lot easier to manage. A pile of other random things too, mostly cleanups and getting things to work with the remodeled arch/ directory. 2005-03-14 06:44:38 +00:00
Glenn Maynard 547c086ac8 cleanup 2004-11-30 09:03:46 +00:00
Chris Danford 722941a646 add monkey scripting input driver for longevity testing 2004-10-16 15:04:10 +00:00
Glenn Maynard 33a04b79de beginning GPL->X11 license transition
The conventions I'm using are to put the entire copyright notice at the bottom
of each file, and to put the summary of the source file's use at the top of the
header.

Putting the license text in each file avoids confusion, and is normal practice
for many projects.  Putting it at the bottom gets it out of the way; it's a
ton of clutter to put at the top.

The description is in the header.  People who don't know what a class is for,
or how to use it, are probably looking at the header to see the interface,
not the implementation, so let's put the description in there.  Keep it brief
(one line); any substantial implementation notes should go in the source file.
2004-05-06 00:42:06 +00:00
Chris Danford 278cb4c3f1 runs on Xbox 2003-07-22 07:47:27 +00:00
Glenn Maynard 480fa64436 clean up dependencies 2003-06-29 07:02:03 +00:00
Glenn Maynard 81fbead16b split this up
Fix losing keyboard input when changing graphics settings (this happened
with the old code, too).
2003-06-18 05:43:12 +00:00
Chris Danford 4d182f85a4 add automatic mapping of joysticks 2003-05-28 02:35:05 +00:00
Glenn Maynard 98628c554b (this is all handled in InputHandler_SDL) 2003-04-12 02:21:50 +00:00
Glenn Maynard 0c400d3567 fix constants
(I don't have a joystick with hats to actually test this, though.)
2003-03-07 04:08:40 +00:00
Glenn Maynard ba744f1eae error handling 2003-02-23 06:26:33 +00:00
Glenn Maynard 657b16cce2 ugh, joystick fix 2003-02-16 20:15:33 +00:00
Glenn Maynard 42cfd6f98c stdafx -> global 2003-02-16 04:01:45 +00:00
Glenn Maynard bc833631e2 add InputHandler abstraction 2003-02-16 02:25:22 +00:00
Glenn Maynard 7578257a17 Use SDL events for keyboard and joystick input. It's simpler.
It's also the "preferred" way of doing it, according to the SDL
docs, so maybe it'll work better.

This will reliably queue events, so we can handle coin events during
loads.

It'll queue events a little too reliably; we might want to flush some events
when we load screens.
2003-02-16 01:35:48 +00:00
Glenn Maynard 93632078c5 split InputDevice into a separate file (so RageInput.h can be edited
without recompiling everything)
2003-02-15 18:49:18 +00:00
Glenn Maynard 72b67368b5 simplify: all devices have the maximum number of buttons, access
them in the same way
2003-02-15 18:28:39 +00:00
Glenn Maynard 8447976237 simplify 2003-02-15 06:44:53 +00:00