Commit Graph
38 Commits
Author SHA1 Message Date
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
Ben Nordstrom c52c818881 no message 2001-11-21 03:21:00 +00:00
Chris Danford a40558031b Major rewrite of all classes related to gameplay (Song, Steps, Player,
WindowDancing and all its UI elements).  All of the dancing UI elements
have been consolidated into the Player class, which simplifies things a
great deal.  Steps and the classes that use them have been generalized
to use a variable number of panels (6 panel, 8 panel).  Only a little more
work is needed on the ColorArrows portion of Player to fully support these
panel modes.
2001-11-04 19:34:28 +00:00
Chris Danford 7caffe0c93 Initial checkin 2001-11-03 10:52:42 +00:00