Commit Graph
53 Commits
Author SHA1 Message Date
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 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
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
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
Glenn Maynard 0e8b4b8371 comments, cleanup 2005-02-13 03:21:22 +00:00
Chris Danford 722941a646 add monkey scripting input driver for longevity testing 2004-10-16 15:04:10 +00:00
Glenn Maynard c31bae20cc cleanup 2004-10-15 21:45:52 +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
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 657b16cce2 ugh, joystick fix 2003-02-16 20:15:33 +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
Glenn Maynard a39bf03926 hide pump_t inside RageINput 2003-02-15 06:00:33 +00:00
Chris Danford 22bb938dd2 Fixed silly joystick axis bug. 2003-01-09 07:46:45 +00:00
Glenn Maynard e0e0c8623e remove now-unnecessary share hack from Pump code 2002-11-29 22:06:51 +00:00
Chris Danford 4a588230e1 DirectInput replaced with SDL's input routines. Keyboard works, but joystick and pump are untested. 2002-11-29 20:37:12 +00:00
Glenn Maynard 24cc7a3c04 Get rid of all other #pragma once's, except the one in StdAfx.h.
(three cheers for perl)
2002-11-16 08:07:38 +00:00
Chris Danford 628dea9da7 OpenGL checkin. Movie textures, texture stretch, texture dither, and 16 bit textures are broken. 2002-11-11 04:53:31 +00:00
Glenn Maynard 68b41e7a75 button implementation, etc. 2002-09-08 06:13:47 +00:00
Glenn Maynard a0a27e7de3 remove some dupe code; show less dinput in the class;
add constants for Z/ZROT/HAT (unimplemented)
2002-09-08 02:49:07 +00:00
Glenn Maynard 4b9404c5c2 (more of the same) 2002-08-26 05:04:54 +00:00
Glenn Maynard e22fdeefcd Make the callbacks static members, so they can access private members.
Make m_pJoystick and GetDirectInput private.

Don't bail out on Update if the joystick fails, since we still have more
devices.  Just log--handle error conditions on our own.

Reduce Windows types in the interface; eventually it'll need to be
clean.

Remove unused Get*Device functions.
2002-08-26 05:01:25 +00:00
Glenn Maynard 8658b101cc Don't export PumpButtonNames; compact the header a bit. 2002-08-26 04:46:16 +00:00
Glenn Maynard 9ef1b27c4a Lock the Pump pad device while enumerating DI8 devices, to work around
a DI8 bug.
2002-08-24 02:26:39 +00:00
Chris Danford a0c7d5bd22 added BackgroundChange editing and DWI saving to editor 2002-08-23 20:18:29 +00:00
Chris Danford 822f8dd3a6 Moved more constants into theme metrics 2002-08-22 09:31:32 +00:00
Glenn Maynard 14ac7e1620 Readd support for secondary Pump pads (which vanished somehow).
Make PiU button order more logical: UL, UR, MID, DL, DR.
2002-08-20 23:25:27 +00:00
Glenn Maynard 0a1cc6116f Don't die when there's no keyboard or mouse. (Perhaps we should die if we find *no* input devices?) 2002-08-20 23:12:52 +00:00
Glenn Maynard fa746ea3f3 Add Pump USB pad support. Code requiring the DDK is blocked off by HAVE_DDK.
Add DeviceInput::NumButtons, to abstract button counts (so adding devices or buttons doesn't require changes to InputFilter).

Use clamp() for m_AbsPosition_x and m_AbsPosition_y.
2002-08-20 22:51:12 +00:00
Chris Danford 4ec08edf2d Mini-rewrite of input mapping, theme support, and added KSF reader. 2002-07-31 19:40:40 +00:00
Chris Danford 2f80235590 no message 2002-05-19 01:59:48 +00:00
Chris Danford 78f3e80118 2.50 checkin 2002-04-16 17:31:00 +00:00
Chris Danford d2eeed810c in the middle of working on 1.70. Now compiles in Visual Studio.net 2002-03-30 20:00:13 +00:00
Chris Danford 7f3a131195 changes made from 0.95 through 0.97 2001-12-28 10:15:59 +00:00
Chris Danford bbc4097826 kljhfdkjhfjkhdfkjf 2001-12-19 01:50:57 +00:00
Chris Danford ae2aa31944 rewrite of input handling 2001-11-25 10:49:31 +00:00
Chris Danford c679ec7956 Rewrote texture loading actor and sprite 2001-11-25 04:31:44 +00:00