Commit Graph
20 Commits
Author SHA1 Message Date
Shenjoku e666d8ee89 Upon further consideration I think it's best to just add all possible device
types and let the user try to use whatever they might have. Even if it can't be
mapped properly to something that will work it's still worth trying and
shouldn't cause any major problems (other than just not being able to play with
some weird devices, like lightguns for example).
2013-06-18 21:38:16 -07:00
Shenjoku 1a8b196121 Added another missing device type that some controllers are showing up as. 2013-06-18 10:52:46 -07:00
Shenjoku c56c40fad1 Added another missing case when enumerating joysticks, DI8DEVTYPE_SUPPLEMENTAL,
that should fix a lot more pads that were being reported as not being detected.
Also added some debug log messages that output each device's type and name
so in the future if other devices fail to be detected we can easily see what it
is in the info log.
2013-06-12 10:30:37 -07:00
Shenjoku b7f54a9fb0 Fixed another problem with a DirectInput function getting passed the wrong
constant when enumerating the joysticks. This should hopefully fix the
remaining problems.
2013-05-29 19:02:16 -07:00
Shenjoku 315bf469bc merge 2013-05-28 20:57:38 -07:00
Shenjoku 36a51a8359 Fixed some problems introduced in ba0d2d1 that were causing certain gamepads to
not get detected due to passing and checking the wrong constants when
enumerating the devices.
2013-05-28 20:52:45 -07:00
Shenjoku 910eafbf9f Fixed some problems introduced in ba0d2d1 that were causing joystick inputs to be
incorrectly mapped when using DirectInput.
2013-05-21 23:48:49 -07:00
Shenjoku 1d1f37380e Make sure StreamDisplay children are deleted 2013-04-29 16:38:37 -04:00
Shenjoku 91b1892d09 Fix leak in MenuTimer 2013-04-29 16:33:32 -04:00
Shenjoku 569ca0f984 fix leak in LifeMeterTime 2013-04-29 16:30:54 -04:00
Shenjoku aac47c9777 Fix potential leak in Font 2013-04-29 16:29:55 -04:00
Shenjoku b59d3e9a8f Fixed the non-const definition of the TimingData::GetSegmentAtRow() function,
which was missing the class specifier and casting the data wrong.
2013-04-22 22:20:40 -07:00
Shenjoku fea35b5486 Merge with memoryLeakDetection branch. 2013-04-19 20:36:59 -07:00
Shenjoku 0792db752a Removed the smnew macro and the call to _CrtSetDbgFlag() to get ready for
merging with the main branch.
2013-04-19 20:34:11 -07:00
Shenjoku dac4493fe5 Fixed all remaining memory leaks that I could figure out except for a 4 byte
leak that isn't being caught by the smnew macro for some reason. It might be in
one of the third party libraries or something, I'm not sure.
2013-04-18 22:27:24 -07:00
Shenjoku 01456ed0b9 Fixed a lot of memory leaks caused by static globals never getting
deleted and some other objects not getting deleted properly due to missing
destructors.
2013-04-18 21:17:57 -07:00
Shenjoku 5f7001ef0a Added a new branch that implements support for outputting all memory leaks to
the debug output for the Debug and FastDebug project configurations. This
requires replacing all instances of new with a macro, smnew, that defines a
special form of new which outputs file and line number information along with
the memory leak details. This makes finding memory leaks much easier since you
can just double-click the leak in the output window and it will take you to the
line that caused it.
2013-04-17 20:42:29 -07:00
Shenjoku 05cf6d8cd8 Cleaned up the paths in the VS2008 and VS2010 projects to use '\' character
instead of '/' for consistency and general correctness.

Also added the DirectX include and library paths to the VS2010 project and fixed
the /MP switch for all configurations (it was conflicting with the minimal
rebuild setting).
2013-04-16 23:17:54 -07:00
Shenjoku ba0d2d1838 Upgraded the DirectX 8 rendering to DirectX 9. Updated Direct Input to work with
the latest SDK as well.
2013-04-08 21:13:47 -07:00
Shenjoku 19150cdf9e Added DirectX SDK include and library paths to the 2008 project using the
DXSDK_DIR macro, which is an environment variable added by the SDK installer.
This way the project no long requires messing with the visual studio options to
manually add the paths.

Fixed the Release-SSE2 build configuration so that the /MP switch works.

Some other minor tweaks resetting things to use the defaults that didn't need to
be changed.
2013-04-08 20:52:21 -07:00