Commit Graph
76 Commits
Author SHA1 Message Date
Jason Felds 860699988b Another simple one. 2013-04-30 23:02:20 -04:00
Devin J. Pohly feb919f0bf Revert memory leak commits
5f7001e: "Added a new branch"
01456ed: "Fixed a lot of memory leaks"
dac4493: "Fixed all remaining memory leaks that I could figure out"
0792db7: "Removed the smnew macro and the call to _CrtSetDbgFlag()"

Some of these caused destructor-time problems due to static initialization
order fiasco and related issues.  Notably, the program would no longer exit on
OSX and had to be killed.

There were probably legitimate fixes in here, but since these are monolithic
commits it's too much work to extract them now.  Let's reapply them
individually and in the forward direction.
2013-04-27 00:05:14 -04: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 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 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
Jason Felds b62c1509e0 ints should be reset to 0, not NULL.
I know it's a macro, but this is just begging
to be abused somehow.
2013-01-04 11:01:00 -05:00
Devin J. Pohly f6410abd43 X11: release all keys/buttons when window loses focus 2012-12-31 22:15:49 -05:00
Devin J. Pohly d9f61d919c answer some commented questions 2012-12-31 19:31:38 -05:00
Devin J. Pohly bd0e2074ad replace ASSERT(0) with useful fail messages 2012-12-27 16:59:35 -05:00
Jason Felds e01537405f war on -Werror, part 8: more informals.
General guide: if the parameter name and its typings
match almost exactly, the name goes away.
Otherwise, it's commented out to allow for some
documentation.
2012-12-27 00:00:28 -05:00
Devin J. Pohly 7f4e97d72a fix one more unused warning 2012-12-26 23:08:51 -05:00
Colby Klein a6020c8b1d Shut up the PIUIO driver from leaving a warning all the time. 2012-12-09 02:45:41 -08:00
Devin J. Pohly 07aa41e6ef add comments to clarify piuio inputdriver 2012-08-12 23:13:34 -04:00
Colby Klein fbada6f17f Add support for PIUIO Linux kernel driver, courtesy of djpohly. 2012-08-12 14:35:40 -07:00
AJ Kelly 201d6e8029 another patch from djpohly, this time to silence some pointless log output 2012-05-03 14:06:41 -05:00
AJ Kelly e2ab3d6493 various Linux updates, including making the default size of the splash window 512x96. 2011-08-22 15:50:56 -05:00
AJ Kelly e3b6b142f1 oops that could be dangerous if it wasn't handled 2011-08-17 16:39:21 -05:00
AJ Kelly 424add65a7 add PointerMotionMask to XSelectInput 2011-08-17 16:38:20 -05:00
AJ Kelly c8474bd9b3 okay that was a bad typo, let's try again 2011-08-17 16:35:19 -05:00
AJ Kelly fc65be06a0 potentially broken code, trying to get mouse support on Linux... 2011-08-17 16:32:57 -05:00
Jason Felds c2ac76afbb [default -> Xcode4] Lion is approaching. 2011-07-20 10:12:21 -04:00
AJ Kelly 9b60587be9 [InputHandler_DirectInput] Fixed MouseWheel input not resetting. 2011-06-13 17:37:13 -05:00
Jason Felds ec7e707d39 [XCode4] May as well handle some warnings.
We still have to figure out libtomcrypt though.
2011-06-06 18:21:31 -04:00
AJ Kelly 376ab3d66f more changes to mousewheel code; still not working properly 2011-05-15 00:33:39 -05:00
AJ Kelly 84e93b0bbd update polled mousewheel code 2011-05-15 00:09:44 -05:00
AJ Kelly c8b3a1338b mouse input is working slightly better... 2011-05-15 00:01:38 -05:00
AJ Kelly 594bbbd2bc scroll wheel is an axis, remove comment 2011-04-03 15:35:01 -05:00
Jason Felds 7e747c6d65 Implement Dominik's patch.
Someone on Linux needs to test if possible.
This will be reverted if it's proven it doesn't work.
2011-04-02 16:37:45 -04:00
Jason Felds 53dea206f4 Safe to enable mice finding I think. 2011-03-29 23:21:25 -04:00
AJ Kelly dceebe5005 trying to work on mouse stuff and not getting anywhere 2011-03-29 18:02:28 -05:00
AJ Kelly cf81f8cc3b remove xbox support; it doesn't work, and it'd take too much effort to get it working again 2011-03-19 19:28:57 -05:00
Jason Felds 22b7b34897 More effective fixes.
Course playing still results in it playing fine.
2011-03-19 18:26:55 -04:00
Jason Felds a085d0d1da Line endings...be normalized! 2011-03-17 01:47:30 -04:00
AJ Kelly 330d6f020d more mousewheel stuff 2011-03-16 16:36:10 -05:00
Jason Felds 7c4044a2fc Force consistent line endings.
I'd suggest enabling the EolExtension:
this way we won't go back and forth here.
2011-03-16 15:51:54 -04:00
Jason Felds 8a7877f9d1 More warning fixes.
RageThreads.h is right now clear of
Effective Violations. It may be worth studying.
2011-03-14 15:30:04 -04:00
Jason Felds d855d8c7e8 Bring light into the shadow...variables.
Yeah, yeah, can't make a good joke at 2:30 AM.
2011-03-14 02:36:48 -04:00
Jason Felds 3cbf007352 Another batch of doxy. 2011-02-26 02:54:17 -05:00
AJ Kelly e1b7f7c2bf kill some extra whitespace 2011-02-24 14:09:53 -06:00
AJ Kelly 46a39029d1 fix compile on windows 2011-02-23 20:44:40 -06:00
Jason Felds 6e2ee12007 Allow access to the mouse files. 2011-02-23 20:33:29 -05:00
AJ Kelly 5bba255711 small stuff, again 2011-02-23 19:02:38 -06:00
AJ Kelly 070cccb307 eek! a mouse! (or the start of one on Mac?) 2011-02-23 18:19:54 -06:00
AJ Kelly d78b379464 alright, now mouse support is getting somewhere. 2011-02-23 04:33:55 -06:00
AJ Kelly 245b03fc46 more mouse work... themers on windows can now get mouse x/y coords 2011-02-23 03:11:49 -06:00
AJ Kelly 7666a68151 shut up noisy logging for now 2011-02-19 05:59:18 -06:00
AJ Kelly 20b539f652 change z axis (wheeldown) scale to -120..120 to match input from mouse 2011-02-15 23:26:32 -06:00
AJ Kelly eaba89aa03 last mouse code commit for the night 2011-02-15 04:05:43 -06:00
AJ Kelly 2d71b91c25 mouse code progress 2011-02-15 03:38:02 -06:00